Add bones to a figure via script
cain-x
Posts: 187
Is there a way to add bones to an existing figure via script? Preferably sibling bones under the root figure (not the root hip/pelvis).
I intend to use these bones for parenting props to for use in Puppeteer allowing for in sync animation (as Puppeteer can only work on a single figure for a single graph). This helps streamline my workflow and give significant time savings.
Even better if I am able to merge figures - if this is possible. Although the pie in the sky would be if DAZ can allow Puppeteer to work with any props/figures in the entire Scene.
Comments
I have not done this, but as the scripting documentation is lacking in this area I would look at this SDK example. The SDK and and script API are very similar and you should be able to adapt it.
https://www.daz3d.com/forums/discussion/58162/dzbone-and-weight-maps-handling-in-the-sdk
This is some really good info - I will try this and see if I can manage something. Thanks.
The references above helped! This is the working code I have (tested in 4.20 and 4.21):