Thank you. I wasn't aware of of "positions_count" and can't find it in the in the Attribute page of the KUIML manual.
But for suggestion #1. I was already doing that and it doesn't work. I must be missing something fundamental (or misunderstanding how those arrays tie to the param ID).
Here's my code.
Custom_param1 (below) should default to 100 since inputParametersDefault[1] = 100.
It doesn't, it defaults to 0 . But the RESET button works great and sets it to 100.
Code: Select all
<CELL h_position="90" v_position="10" >
<PARAM_TEXT param_id="custom_param1" content="SINGLE" width="100%" cursor="system::hand" font_weight="bold" fit_text="abbreviate"/>
<PNS_SILVER_BLUE_MODERN_KNOB param_id="custom_param1" positions_count="100" image_scaling="0.6"/>
<PARAM_TEXT param_id="custom_param1" content="PROB" v_position="60" width="100%" cursor="system::hand" font_weight="bold" fit_text="abbreviate"/>
<PARAM_TEXT param_id="custom_param1" spacing="50" width="65" content="{value} {unit}" value_format="0.0"/>
</CELL>Code: Select all
array<string> inputParametersNames={"P0","P1","P2","P3", "P4","P5"};
array<double> inputParameters(inputParametersNames.length);
array<double> inputParametersMin ={ 0, 0, 0, 0, 0, 0};
array<double> inputParametersMax ={127,100,20,20, 10,10};
array<double> inputParametersDefault={ 40,100, 0, 0, 1, 1};
array<int> inputParametersSteps ={128,100,21,21, 11,41};I'm feeling stupid.