How to do basic scene composition using scripts?
I'm an experienced programmer trying to wrap my head around Daz Studio scripting.
I'm looking for examples on how to do basic operations to compose and render a scene. Things like:
- Loading objects into a scene
- Applying morphs
- Applying a pose
- Setting parameters
- Setting materials
- Positioning camera, lights etc.
- Rendering a scene
I would expect that this would be given as the first code example, but it's not. Am I fundamentally misunderstanding what can be done with scripting in Daz Studio?
I know all of these things can be done with the Daz Studio UI but it is cumbersome to use.
I've looked at tools like 'Render Doctor' which does this a little bit, but it's not nearly as powerful as I expect is possible.
Comments
There are sample scripts covering most of those areas http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/start
Sorry I must have not explained it right. I'm looking for authoritative examples that show to do things.
I'm cobbling things together from bits and pieces of code I'm finding on these forums, because I can't find anything of use to me on that samples page.
- Loading objects into a scene
- Applying morphs
- Applying a pose
- Setting parameters
- Setting materials
- Positioning camera, lights etc.
For these it might be simplest to use File>Save As>Deprecated to save a suitable script based preset, though those are not covered by the same license terms as the samples so you wouldn't be able to just copy chunks of code with attribution.
- Rendering a scene
although they ar rendering to a specific purpose rather than just a plain render the samples here should cover most of what you need http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/start#general1 , and you can follow the links back to the objects involved to learn more.