eliemichel / OpenMfxForBlender

A branch of Blender featuring an OpenMfx modifier
Other
177 stars 19 forks source link

Handle min/max for parameters #36

Closed tkarabela closed 3 years ago

tkarabela commented 3 years ago

OFX supports setting min/max values of parameters via kOfxParamPropMin, kOfxParamPropMax. This is currently implemented in CppPluginSupport and its MfxParamDef class, but ignored by Blender host.

AFAICT, we need to add range callback functions via RNA_def_property_int_funcs(), RNA_def_property_float_funcs() in rna_def_modifier_openmesheffect() and store the min/max bounds in struct OpenMeshEffectParameterInfo, so that we can set them in the callback.