Kontakt 4 - $KNOB_UNIT_PERCENT

VST, AU, AAX, CLAP, etc. Plugin Virtual Instruments Discussion
Locked New Topic
RELATED
PRODUCTS
Kontakt

Post

Hi

This is not working:

Code: Select all

	$count := 0
	while ($count < 3)
		set_control_par(%var[$count],$KNOB_UNIT_PERCENT)
		inc($count)
	end while
Cheers

Post

It will work only on ui_knobs, obviously. And if UI IDs in %var array are valid.

Post

Yeah, it's for knobs. $count and %var were declared and are valid but still I get a "expression expected" message. I've tried set_knob_unit(%var[$count],$KNOB_UNIT_PERCENT) but with this one I get "statement expected".

Post

Ah, you're missing one parameter.

Code: Select all

set_control_par(%var[$count], $CONTROL_PAR_UNIT, $KNOB_UNIT_PERCENT)

Post

Now all is perfect, thank you EvilDragon :tu:

Locked

Return to “Instruments”