Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: CUE related script (need help)

Dieses Thema ist veraltet und kann veraltete oder falsche Informationen enthalten.

I'm trying to set a button for this


what I have done

set_cue 16 & cue_color 'pink' & cue_name "EXAMPLE"

that script works perfectly. It does what it is told.

but if I set it to

has_cue 16 ? delete_cue 16 : set_cue 16 & cue_color 'pink' & cue_name "EXAMPLE"

the part that removes if cue 16 exist works and if not exist, it sets cue 16 and colors it works but, the NAME is not working.

is this the right way of doing what I wanted to do ?

TIA
 

geposted Tue 03 Jan 17 @ 8:02 pm
seems the cue name is not working for me in the first example odd..

but like u say it adds cue but not name
 

geposted Tue 03 Jan 17 @ 9:57 pm
try this

set_cue 16 & cue_color 'pink' & cue_name 'EXAMPLE'



it might be 'EXAMPLE'... I'll double check my gig machne
 

geposted Wed 04 Jan 17 @ 2:30 am
just check my script, it's 'EXAMPLE' and not "EXAMPLE"


so here is the right syntax.. fixed all the missing 8


set_cue 8 & cue_color 8 'pink' & cue_name 8 'EXAMPLE'

above works perfectly.


has_cue 8 ? delete_cue 8 : set_cue 8 & cue_color 8 'pink' & cue_name 8 'EXAMPLE'

it works what it supposed to do but the NAME part is not working.

it removes if the cue exist, or add cue, color it pink if it does not and supposed to name it too.
 

geposted Wed 04 Jan 17 @ 4:07 am
lincol2PRO InfinityMember since 2011
The Magic.DJ wrote :
.it removes if the cue exist, or add cue, .



What if there's an existing Cue "number" that you wish did not get deleted? How about a modification to this script to warn there in an existing cue number?

 

geposted Wed 04 Jan 17 @ 1:41 pm
in this example CUE 8, that will be only one remove. If you have other cue 1 2 3 4 5 6 7 9 10 etc... 8 will be deleted ( delete_cue 8 )
 

geposted Wed 04 Jan 17 @ 2:32 pm
lincol2PRO InfinityMember since 2011
I am thinking that with an existing eg Cue 18 that you set a month ago , now with this script with a cue 18 that you can activate on the fly. The possibility of modifying this script to warns there is an existing Cue 18 so you do not reset a new cue 18 etc by mistake.
 

geposted Wed 04 Jan 17 @ 3:21 pm
then replace delete_cue to NOTHING


has_cue 8 ? NOTHING : set_cue 8 & cue_color 8 'pink' & cue_name 8 'EXAMPLE'
 

geposted Wed 04 Jan 17 @ 6:05 pm
lincol2PRO InfinityMember since 2011
the cue name 'EXAMPLE' does not show up.
 

geposted Wed 04 Jan 17 @ 8:21 pm
locoDogPRO InfinityModeratorMember since 2013
maybe try use a repeat_start to call the "cue_name" bit with a 33ms delay.
 

geposted Wed 04 Jan 17 @ 11:35 pm
I'm trying/playing with repeat_start no luck.


anyway why it does not work ?


set_cue 8 & cue_color 8 'pink' & cue_name 8 'WORK'

Above works perfectly


now we put CONDITION

has_cue 8 ? nothing : set_cue 8 & cue_color 8 'pink' & cue_name 8 'WORK'

it set cue 8 and color it pink but the name no work.


has_cue 8 ? nothing : set_cue 8 & cue_color 8 'pink'

this works perfectly (deleted the name now)


has_cue 8 ? nothing : set_cue 8 & cue_name 8 'WORK'

this sets cue 8 but the NAME don't work


has_cue 8 ? nothing : set_cue 8 & cue_name 8 'WORK' & cue_color 8 'pink'

this sets cue 8 and COLOR works but again the NAME don't work


it's is skipping the CUE_NAME no matter where you place it.
 

geposted Thu 05 Jan 17 @ 2:26 pm
@ohshit

has_cue 8 ? cue_name 8 'EXAMPLE' ? nothing : cue_name 8 'EXAMPLE' : set_cue 8 & cue_color 8 'pink'

this one will work of what you are looking for but you need to manually delete the CUE 8 in POI (cause the nothing does not work)


has_cue 8 ? cue_name 8 'EXAMPLE' ? delete_cue 8 : cue_name 8 'EXAMPLE' : set_cue 8 & cue_color 8 'pink'


in my case I wanted the nothing to be delete_cue 8 but it does not work (no matter what command you replace nothing it just ignores it.
 

geposted Thu 05 Jan 17 @ 2:51 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
Issue has been reported. Will post here once i have more info. Thanks for bringing this up.
 

geposted Thu 05 Jan 17 @ 2:52 pm
thank you DAD, I am going crazy trying to make it work.
 

geposted Thu 05 Jan 17 @ 2:56 pm


(Alte Themen und Foren werden automatisch geschlossen)