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

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

  • OmnifluxOmniflux Posts: 377

    Look at DzProperty.getPresentation().type or (DzProperty.setPresentation(...))

  • yaruuvvayaruuvva Posts: 33

    Thank you Omniflux, setPresentation worked!

Sign In or Register to comment.