Modstrip value change on switch press

StephanS90
Member Posts: 3 Newcomer
Hi There,
i have a problem on my modswitch script. I want a switch to switch 2 Modstrips, between 2 Modstrip states. But it only works in one way. The "else" statment did not work but why? the functions in there are only for showing and hiding other switches.
Thx for your help
on ui_control($ModSwitch) if ($ModSwitch = 1) call show_fade $count := $STARTGRP while ($count < $STARTGRP3) set_engine_par($ENGINE_PAR_MOD_TARGET_INTENSITY,10 +$ModSwitch*7/50,$count,find_mod($count,"CC_VOLUME"),-1) set_engine_par($ENGINE_PAR_MOD_TARGET_INTENSITY,1000000 ,$count,find_mod($count,"CC_VOLUME_FADE"),-1) inc($count) end while else $count := $STARTGRP while ($count < $STARTGRP3) call hide_all set_engine_par($ENGINE_PAR_MOD_TARGET_INTENSITY,1000000,$count,find_mod($count,"CC_VOLUME"),-1) set_engine_par($ENGINE_PAR_MOD_TARGET_INTENSITY,10 +$ModSwitch*7/50 ,$count,find_mod($count,"CC_VOLUME_FADE"),-1) inc($count) wait(1000*1000) end while end if end on
Tagged:
0
Answers
-
may be see : on persistence_changed with a select function
0 -
Hi John thanx for your answer.
What do you mean with a select function?
cheeres Stephan
0 -
Any other ideas? I think i have an error somewhere in the code but i do not get it right.
I would be grateful for help. Thx
0
Back To Top
Categories
- All Categories
- 21 Welcome
- 739 Hangout
- 73 NI News
- 348 Tech Talks
- 1.6K Native Access
- 7.1K Komplete
- 932 Komplete General
- 1.7K Komplete Kontrol
- 2.6K Kontakt
- 651 Reaktor
- 226 Battery 4
- 390 Guitar Rig & FX
- 263 Massive X & Synths
- 385 Other Software & Hardware
- 3.1K Maschine
- 24 Sampling Room
- 3.8K Traktor
- 3.5K 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