Ingresar:     


Forum: VirtualDJ Technical Support

Tópico: using variables as parameter values
Hey guys I have a simple question. On my controller I have a button which has this action script applied to it:

down ? set 'preFX' `deck 2 get_effect_title 1` & deck 2 effect_active 1 "Loop Roll" & deck 2 effect_button 1 on : deck 2 effect_button 1 off & deck 2 effect_select 1 `get_var 'preFX'`

It's a button which saves the current name of the first effect slot on deck 2 and replaces it with the "Loop Roll" effect which is then activated. When released it should load the previously saved effect.
Problem is I can't pass the variable content to the effect_select action. I also tried it with param_cast "text" `get_var 'preFX'` to no avail.

A workaround would be using bank_effect_load/save, but this too wont work as it will only revert effect slot 2 and 3 and not the first slot where I load the "Loop Roll" effect.

My question is if it is possible to pass a variable as parameter value?

Kind regards,
C
 

Mensajes 3 days ago @ 10:22 am
effect_select doesnt seem to accept `script`
btw, prefer get_effect_name instead of get_effect_title (which doesnt return just the FX name)

ah wait, this seems to work ...
get_var 'preFX' & param_cast 'text' & effect_select to set back the saved FX to slot 1

So try ..
down ? set 'preFX' `deck 2 get_effect_name 1` & deck 2 effect_active 1 "Loop Roll" & deck 2 effect_button 1 on : deck 2 effect_button 1 off & get_var 'preFX' & param_cast 'text' & effect_select