Resources for learning DAZ scripting

http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/start

I look at the docs and they seem to be a mess of broken links, "You do not have permission" messages and otherwise incomplete info.

I would like to learn more about scripting placement of instances and geometry much like products like Ultra Scenery. I have looked in the store and don't find much in the way of tutorials or pointers where to look in the forms. Would be interested in finding a good place to start or tutorials?

 

Comments

  • RakudaRakuda Posts: 931

    Perhaps this is a good source?

  • cridgitcridgit Posts: 1,757
    edited May 2022

    Redacted

    Post edited by cridgit on
  • RakudaRakuda Posts: 931

    @cridgit I have used Javascript and PHP mainly for some time. But I could stand to update my knowlege of current ECMA Script. I will plod around and try to generate some working examples. Currently I am mainly interested in loading elements from my library, managing distribution of instances, generating of terrain from heightmaps, etc.

  • Catherine3678abCatherine3678ab Posts: 8,383

    Rakuda said:

    Perhaps this is a good source?

    Looks good to me :-) 14 video tutorials!

    https://www.youtube.com/playlist?list=PLOWr2hbe8cTg15gZikzVVo3PRNX-Nz3z_

     

  • cridgitcridgit Posts: 1,757
    edited May 2022

    Redacted

    Post edited by cridgit on
  • Richard HaseltineRichard Haseltine Posts: 102,218

    cridgit said:

    It's hard to know what to say without knowing more about your skills/experience. Do you have a programming background and are you familiar with Javascript/ECMA Script/Qt?

    The Script SDK isn't very well documented but it has improved over the years and Rob has put in a tremendous effort to give a wide range of examples as starting point. But its a lot of trial and error.

    Probably the best advice I can give without knowing more is pick up an example script either from the SDK website or from mCasual's website and start tinkering with it. Change stuff and see if it breaks, why it breaks. You'll gradually be able to grasp more complex scripts.

    I've been programming for 35 years and doing DAZ Script for about 10. I still keep the SDK page open while I'm coding to look stuff up because it is a rich API but sometimes a little counter-intuitive to me. I just wish it used something a little more current e.g. say Python for example.

    Is Python more current? It's been around for years - possibly even decades, it must certainly be getting on for its second.

    Scripting in Daz Studio is built on the Qt scripting engine, and of course DS is built on an older version of Qt. That is being updated in order to get it compatible withg Big Sur (quite possibly among other reasons) which will, when complete, update the ECMAScript version used.

  • cridgitcridgit Posts: 1,757
    edited May 2022

    Redacted

    Post edited by cridgit on
  • Richard HaseltineRichard Haseltine Posts: 102,218

    Are you comparing with Java or javascript? Not the same thing. Also, if Python did launch ahead of Javascript that would make it older rather than newer.

    Personally I'll take a script that controls hierarchy via brackets over one that uses indents only, as I believe Python still does.

  • Richard Haseltine said:

    ...

    Personally I'll take a script that controls hierarchy via brackets over one that uses indents only, as I believe Python still does.

    I just cannot get used to that. As primarily a C++ programmer, Python does many things that seems unnatural to me, but significant whitespace is the worst.

     

  • TaozTaoz Posts: 9,971

    Catherine3678ab said:

    Rakuda said:

    Perhaps this is a good source?

    Looks good to me :-) 14 video tutorials!

    https://www.youtube.com/playlist?list=PLOWr2hbe8cTg15gZikzVVo3PRNX-Nz3z_

     

    Looks like those they used to sell here at DAZ.  They are quite good with both videos and PDF tutorials, but unfortunately they never completed the series as promised so all you got was info about scripting syntax and all that fundamental stuff most programmers know already, apart from some simple scripting for handling nodes and scaling objects and moving them around and such no real practical examples of DS scripting.  

  • Catherine3678abCatherine3678ab Posts: 8,383
    edited June 2021

    Taoz said:

    Catherine3678ab said:

    Rakuda said:

    Perhaps this is a good source?

    Looks good to me :-) 14 video tutorials!

    https://www.youtube.com/playlist?list=PLOWr2hbe8cTg15gZikzVVo3PRNX-Nz3z_

     

    Looks like those they used to sell here at DAZ.  They are quite good with both videos and PDF tutorials, but unfortunately they never completed the series as promised so all you got was info about scripting syntax and all that fundamental stuff most programmers know already, apart from some simple scripting for handling nodes and scaling objects and moving them around and such no real practical examples of DS scripting.  

    Oh dear. Well that's explains I guess why there's  A to O, but no P-Z. Thank you for the alert.

    Post edited by Catherine3678ab on
  • cridgitcridgit Posts: 1,757
    edited May 2022

    Redacted

    Post edited by cridgit on
Sign In or Register to comment.