Forum: General Discussion

About VirtualDJ and DJing in general

If you need extended support, contact our Support Team.
Forum Guidelines  (*) The moderators hold the rights to move or modify posts in order to keep the discussions clear or to facilitate the search.
Tema: effect with multifunctions
i have trouble when programming effect, what I want to do is to set the effect and the slider have a desire value example:
<button class="blue_pad" action="down ? effect_active transform &amp; effect_slider 1 1 60% while_pressed : effect_disable_all"
<button class="magenta_pad" action="down ? effect_active transform &amp; effect_slider 1 1 40% while_pressed : effect_disable_all"
at this point the effect work but only if the effect is selected on slot 1 if there is other effect on slot 1 then the effect will be on when I pressed. also I want to add to the same line a second slide as a effect volume other example:
<button class="purple_pad" action=" down ? effect_active noise &amp; effect_active transform &amp; effect_slider 1 1 40% while_pressed : effect_disable_all " this is very nice combination but have the same problem as the others

please help
i will thank you

Mensajes Tue 13 Mar 18 @ 2:25 pm
locodogPRO InfinityModeratorMember since 2013
<button class="blue_pad" action="down ? effect_active "transform" & effect_slider "transform" 1 60% while_pressed : effect_disable_all"
<button class="magenta_pad" action="down ? effect_active "transform" & effect_slider "transform" 1 40% while_pressed : effect_disable_all
<button class="purple_pad" action="down ? effect_active "noise" & effect_active "transform" & effect_slider "transform" 1 40% while_pressed : effect_disable_all "

Where I have wrapped effect name in quote marks, write (without the space) & quot;

This could be refined, I'll post more later (few days)

Mensajes Tue 13 Mar 18 @ 7:56 pm
You mean write how it is just without the “ marks and where i have quote put & ??

Thanks for the answer

Mensajes Wed 14 Mar 18 @ 2:07 pm
it keep the same way i have. if effect transform is not in the slot it won't work

Mensajes Mon 19 Mar 18 @ 5:07 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
i think while_pressed doesnt work with a down ? query.
so just replace while_pressed with on
down ? effect_active "transform" on & effect_slider "transform" 1 60% : effect_disable_all

or if what you want is to have the FX on while pressed and release all others you can also try.
effect_disable_all & effect_slider "transform" 1 60% & effect_active "transform" while_pressed
The 2nd one may not work, because even if in theory the disable action is first in the script, depending on how fast the release is , the last action may be executed before the release, so the FX may not be enabled. But the first script should work.

Mensajes Mon 19 Mar 18 @ 11:34 pm