Adding New Properties via Scripting
cain-x
Posts: 192
I am looking for a way to add properties to a figure part node which directly controls a property on another figure/prop via script. For example, in the Property Hierarchy:
For the Right Foot, I would create new properties that would remotely control a gas, brake and clutch bone on another figure. This is so Puppeteer can control all the motions on separate figures and makes animating less cumbersome. Here's an example:
On another note, doing the above manually does not save to the Scene file. When re-opened, the Link: parameter becomes empty. Which is a shame to re-apply after re-opening the scene. Having this script would allow me to workaround that issue and also apply this to other figures.
Thanks!
Post edited by cain-x on
Comments
Although it covers access rather than adding thiss et of samples gives an overview of node proerpties http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/start#properties
These show how to establish links between proerpties after loading http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/start#post-load_data_items
Thank you, Richard!
I have this working now on my first pass from your provided notes - this was very helpful.