How to identify morphs that affect bones / skeleton
CStrat
Posts: 30
I'm building my first script and I need a way to identify morphs that have bone movements. As far as I know, in the .dsf file you can tell when a morph has bone movements by checking whether there is any data in "forumlas". But I'm wondering if there is a way to identify these morphs through scripting, or at least point me in the right direction if there is a way to select or identify morphs with bone movements in Daz Studio.
Comments
You mean joint centre adjustments (e.g. from Adjust Rigging to Shape)? On a property getControllerList http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/property_dz#a_1a1d18a7acab16177dbdc22e924ea08808 will give a list of controllers, so you could grab the bone proerptiess and then check to see if the property you were interested in was there. I am not sure whetherslave cotnrollers http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/property_dz#a_1a16a02261b31d53b06b4e2842792b5e47 are the equivalent of SubComponents, if they are then that might be quicker - see if any of the entries seem to be offsets or rotations for bones. I can't immediately see a way to check specifically for joint adjustment ERC, though.
OK, yes it has been confirmed that SlaveController here is the same thing as Sub-component in the UI - so yes, you should be able to use those methods on the morphs you are interested in to look for adjustment links to bones.
Thanks!