RESOLVED:Python Par reports incorrect min/max range

Build 2019.33020, Win 10.

It seems when I query a Par class for min/max on a built-in parameter, it always reports 0 and 1. But if I use t-script, as reported by Rob in a post 4 yrs ago, I can get a more reasonable min/max range for a built in parameter. Also, when I tried to do the drag-n-drop method to add custom parameters, the custom param builder also was able to get the correct range.

Can we please promote these values to the Python classes?

Thank you.

Hi,
I believe you’re looking for:

Par.normMin
Par.normMax

normMin → float :

Get or set the parameter’s minimum slider value if the parameter is a numerical slider. Can only be set on Custom Parameters.

normMax → float :

Get or set the parameter’s maximum slider value if the parameter is a numerical slider. Can only be set on Custom Parameters.

More info:

https://docs.derivative.ca/Par_Class

1 Like

Ahh. Thank you, Rob! I didn’t realize it was a slider.

Da.