Plug'n Script Button

Official support for: bluecataudio.com
RELATED
PRODUCTS
Plug'n Script$99.00Buy

Post

Aloha Ilya,

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.

Post

All seems ok! You know you can also set knob to default value by right clicking on it? Does it also sets to 100?

If the problem is that after reloading script your knobs don't go to default values - I think it's normal, it's the same in my case. I think they remember where they were before reloading, because somewhere in the code (in the skin for example) their params have persistent="true" attribute.

Post

Aloha Ilya,

That makes perfect sense. And it's no big deal since pressing the reset button restores the default values.

Sincere Thanks!

Post

:tu:

Post Reply

Return to “Blue Cat Audio”