Quick Sign In:  

Forum: VirtualDJ Skins

Topic: cue_action
Hi,

is there a way to ask the loaded track has cue_action?
I need this for:

<panel visible="cue_action 2 ? on : off" >

this doesen't work
i testet many but i doesen't found the right way.

And the second Question.

Can i create a Button in the Skin XML wit cue_action?
With " " the Skin crash and with ' ' it doesen't work

action="cue_action 2 var_equal '@%cueaction20' 1 ? goto_cue 3 : nothing"
 

Posted Tue 05 Jul 22 @ 3:24 pm
For second question:

the action needs to be in quotes.

action="cue_action 2 `var_equal '@%cueaction20' 1 ? goto_cue 3 : nothing`"

or

action="cue_action 2 &apos;var_equal '@%cueaction20' 1 ? goto_cue 3 : nothing&apos;"

should work in your skin coding. (not tested the 2nd)
 

Posted Tue 05 Jul 22 @ 6:00 pm
Thanks for your awnser.

The fist one with the `` works. But only when a CUE 2 is set before.
The second with the & a p o s ; doesn't work.

This script do what i will:

action="set_cue 2 & cue_action 2 `var_equal '@%cueaction20' 1 ? goto_cue 3 : nothing`"


Now i need a tip for the fist question.
 

Posted Tue 05 Jul 22 @ 8:54 pm
Yes need to create the cue first before setting an action for it.

and maybe of interest:
and you may already be aware of, one can set name and color of cue within the button. cue_name and cue_color
(currently cannot change/set, cue Type (accept for Action) or the invisible/'marker only', attributes)

and can query if cue 2 exists, and do different things depending on outcome. has_cue 2

-------

and interested in answer to first question. ie can the cue_action verb be queried.
 

Posted Tue 05 Jul 22 @ 9:50 pm