Entra:     


Forum: VirtualDJ Technical Support

Topic: Action Poi for Masterdeck
Hello, in some songs I implemented action cues to control lights.
These works only if the songs deck is MASTER.
I don´t find the Syntax in an action cue to set this.
[~Make the deck (1-4) where the song is actually played to MASTER]

Also need something similar for song chains. [~If the song is played in deck left then start deck right otherwise vice verse]. Best syntax for saving commands would be: [~start the other deck]

Thanks for any help and best wishes
Sven
 

Inviato 23 hours ago
is_audible
perhaps?
 

Example of apoi?

other deck
set_deck `get_deck & param_mod 2 & param_add 1` & play_pause
 

Thank You. For the first question a simple masterdeck does the work.
The second wish I have to make more clear:
If the song is played in leftdeck, the rightdeck shall start. If played in the rightdeck, the leftdeck shall start.
 

I answered that.
 

Hi Locodog, Thank You for Your line.
Sorry, didn´t mention it´s a 4 deck skin and sometimes decks 3 and 4 are swapped as left and right decks.
commands in leftdeck-songs shall always call right deck and vice versa.
Here are the results of Your code:

Leftdeck Rightdeck
Deck 1__->__Deck 2 |............deck 1 plays and deck 2 starts
Deck 1__->__Deck 4 |............deck 1 plays and deck 2 starts (wrong)
Deck 3__->__Deck 2 |............deck 3 plays and deck 2 starts
Deck 3__->__Deck 4 |............deck 3 plays and deck 2 starts (wrong)

Deck 1__->__Deck 4 |............deck 4 plays and deck 1 starts
Deck 3__->__Deck 4 |............deck 4 plays and deck 1 starts (wrong)
Deck 1__->__Deck 2 |............deck 2 plays and deck 1 starts
Deck 3__->__Deck 2 |............deck 2 plays and deck 1 starts (wrong)
 

leftdeck ? deck right play : deck left play

Like this maybe?
 

Yes this works. Thank You, Adion.
With this classic vdj scripting I have to write all commands twice in the poi.
But sometimes the command lines are very long.
Are there commands that call THE OTHER DECK (right or left) to save half of the commands?
 

set_deck `leftdeck ? deck right get_deck : deck left get_deck` & ....
 

That´s it! Thank You Adion.
Have never tried these ‘get’ things. Saves a lot of code.
You all have a nice sunday and greetings from
Svenino