Quick Sign In:  

Forum: VirtualDJ Plugins

Topic: Deck selection based on value global variable

This topic is old and might contain outdated or incorrect information.

Im using a video plugin and in the .xml i refer to a certain deck for displaying information about that deck. Currently I'm addressing a certain deck by using a number 1 2 3 or 4. I was wondering however if I could create a variable that can take values of 1 to 4 and have the deck refer back to the value of this variable.
Then in the code, it would look somehting like
<textzone deck="VARIABLE X" visibility="deck loaded"> bladibla </textzone>
Would this possibly work if Variable X can take on values of 1 to 4?
Thanks to you all!
 

Posted Thu 18 Oct 18 @ 2:31 pm
You should better do it with visibility attribute:

<textzone deck="1" visibility="var_equal '$My_X_Global_Var' 1 ? loaded">blah blah blah</textzone>
<textzone deck="2" visibility="var_equal '$My_X_Global_Var' 2 ? loaded">blah blah blah</textzone>
<textzone deck="3" visibility="var_equal '$My_X_Global_Var' 3 ? loaded">blah blah blah</textzone>
<textzone deck="4" visibility="var_equal '$My_X_Global_Var' 4 ? loaded">blah blah blah</textzone>
 

Posted Fri 19 Oct 18 @ 10:56 am
Thank you for your answer PhantomDeejay,

Although at first this is not the way I could use to solve my problem, your solution has helped me to develop a new strategy for approaching my problem and I think I have found the solution now.
 

Posted Fri 19 Oct 18 @ 1:53 pm


(Old topics and forums are automatically closed)