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

Options
treynterrio
treynterrio Member Posts: 64 Member

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

  • treynterrio
    treynterrio Member Posts: 64 Member
    Options

    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)


Back To Top