Modstrip value change on switch press
StephanS90
Member Posts: 3 Member
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
This discussion has been closed.
Back To Top
Categories
- All Categories
- 19 Welcome
- 1.5K Hangout
- 62 NI News
- 785 Tech Talks
- 4.1K Native Access
- 16.5K Komplete
- 2K Komplete General
- 4.3K Komplete Kontrol
- 5.7K Kontakt
- 1.6K Reaktor
- 378 Battery 4
- 845 Guitar Rig & FX
- 429 Massive X & Synths
- 1.3K Other Software & Hardware
- 5.8K Maschine
- 7.3K Traktor
- 7.3K 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