accessing dForce surface values by script [solved]
meipe
Posts: 101
When you add a dForce modfier to a character, several simulation parameters are added to it and can be edited in the surfaces tab.
Is there a way to access them by script? If I iterate the property list of the material's shape I can find everything, except them...
Post edited by meipe on
Comments
Have a look at this sample script http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/properties/material_properties/start
Short answer is: You need to access the DzDForceModifier.
Hope the following helps...
(Also attached as DzDForceModifier.txt in case the forum does not format the code correctly).
Thank you! Richard's sample script is easy to use.
Just set, for example at line 236
var sPropertyName = "Contraction-Expansion Ratio";
and add a line of code at the end of the script to edit the property value:
oProperty.setValue(0.66);
I wasn't able to use praxis's approach, but I suppose t may work.
Not my script, but I'm glad it worked.