How to set Parameter's Type to "Modifier/Shape" in code?
yaruuvva
Posts: 33
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!