How to set Parameter's Type to "Modifier/Shape" in code?
![yaruuvva](https://secure.gravatar.com/avatar/62db6794c54162a172c38972c74b2520?&r=pg&s=100&d=https%3A%2F%2Fvanillicon.com%2F62db6794c54162a172c38972c74b2520_100.png)
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);
Comments
Look at DzProperty.getPresentation().type or (DzProperty.setPresentation(...))
Thank you Omniflux, setPresentation worked!