Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

How to set Parameter's Type to "Modifier/Shape" in code?

$
0
0

Hello,

I wrote a script that automatically creates Parameters for a selected in a Scene character.

But I can not find an API function that is used to setup property's Type. I need to set it to "Modifier/Shape"

 

var character = Scene.getPrimarySelection();

var prop = new DzFloatProperty(prefix + blendshapesNames[i], true/*canAnimate*/, true/*isUserProperty*/);

prop.setMinMax(-1, 1);

prop.setDefaultValue(0);

prop.setPath("Actor");

prop.setDisplayAsPercent(true);

character.addProperty(prop);


Viewing all articles
Browse latest Browse all 1036

Trending Articles