Allow, Disallow don't work anymore when I reopen the saved Instrument

Hi there,
when I wrote the allow, disallow script for every ui_switch everything works fine. as soon as I'm save the instrument and reopen it, it's not working anymore.
if ($reverse # 0)
disallow_group($ALL_GROUPS)
allow_group(1)
end if
if ($strum # 2)
disallow_group($ALL_GROUPS)
allow_group(2)
allow_group(0)
end if
if ($motor # 3)
disallow_group($ALL_GROUPS)
allow_group(3)
allow_group(0)
end if
if ($heaven # 4)
disallow_group($ALL_GROUPS)
allow_group(4)
allow_group(0)
end if
if ($warpping # 5)
disallow_group($ALL_GROUPS)
allow_group(5)
allow_group(0)
end if
end on
can anyone help me with this?
@EvilDragon do you have a solution for me?
Thanks
Comments
-
theses are the switches that I use:
declare ui_switch $REVERSE
move_control_px($REVERSE,521,69)
make_persistent($REVERSE)
set_text ($REVERSE,"REVERSE")
set_control_par(get_ui_id($REVERSE), $CONTROL_PAR_HIDE, $HIDE_WHOLE_CONTROL)
declare ui_switch $STRUM
move_control_px($STRUM,521,85)
make_persistent($STRUM)
set_text ($STRUM,"STRUM")
set_control_par(get_ui_id($STRUM), $CONTROL_PAR_HIDE, $HIDE_WHOLE_CONTROL)
declare ui_switch $MOTOR
move_control_px($MOTOR,521,101)
make_persistent($MOTOR)
set_text ($MOTOR,"MOTOR")
set_control_par(get_ui_id($MOTOR), $CONTROL_PAR_HIDE, $HIDE_WHOLE_CONTROL)
declare ui_switch $HEAVEN
move_control_px($HEAVEN,521,117)
make_persistent($HEAVEN)
set_text ($HEAVEN,"HEAVEN")
set_control_par(get_ui_id($HEAVEN), $CONTROL_PAR_HIDE, $HIDE_WHOLE_CONTROL)
declare ui_switch $WARPPING
move_control_px($WARPPING,521,133)
make_persistent($WARPPING)
set_text ($WARPPING,"WARPPING")
set_control_par(get_ui_id($WARPPING), $CONTROL_PAR_HIDE, $HIDE_WHOLE_CONTROL)
0
Categories
- All Categories
- 19 Welcome
- 1.5K Hangout
- 65 NI News
- 799 Tech Talks
- 4.1K Native Access
- 16.8K Komplete
- 2K Komplete General
- 4.4K Komplete Kontrol
- 5.8K Kontakt
- 1.6K Reaktor
- 386 Battery 4
- 854 Guitar Rig & FX
- 436 Massive X & Synths
- 1.3K Other Software & Hardware
- 5.9K Maschine
- 7.4K Traktor
- 7.4K Traktor Software & Hardware
- Check out everything you can do
- Create an account
- See member benefits
- Answer questions
- Ask the community
- See product news
- Connect with creators