Quick Sign In:  

Forum: General Discussion

Topic: VDJ Script Question

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

VDJScript, how to detect when something has happened and take action.
E.g: Next track in Automix has started, so change the shader?
 

geposted Sun 04 Apr 21 @ 3:39 pm
locoDogPRO InfinityModeratorMember since 2013
lots of ways, first that comes to mind is onSongLoad mapping

automix ? deck master effect_string 'shader' 2 +1
automix ? effect_string audioonlyvisualisation 2 +1

depends on which shader you use.
then there's load_pulse, or you could monitor songpos smaller or other monitor methods... like I said lots of ways
 

geposted Sun 04 Apr 21 @ 3:54 pm
Thanks for the quick reply LOCODOG.
automix ? deck master effect_string 'shader' 2 +1 will not auto change the shader. have to click the pad.
Using the Overlay shader.
I would like to click a pad, with automix playing, and everytime a track changes the shader will auto change.
If I can get this to work, lots of other scripting bits will be much clearer!
Thanks Again
 

geposted Sun 04 Apr 21 @ 4:14 pm
locoDogPRO InfinityModeratorMember since 2013
oh right I understand now, I gave you the onSongLoad method [when a song is loaded a script is called]

erm button method...

repeat_start 'catchPulse' ? on & repeat_stop 'catchPulse' : off & repeat_start 'catchPulse' 190ms & load_pulse ? nothing : deck master effect_string 'shader' 2 +1

first button logic - is our repeat running ? yes, stop it : no, start it - every 190ms query load_pulse [load_pulse turns false for 200ish ms when a track is loaded] when false change shader
 

geposted Sun 04 Apr 21 @ 5:10 pm
NicotuxHome userMember since 2014
automix ? deck master effect_string shader 2 +1
have to be map as ONSONGLOAD script for this to work as you need

another way being to initiate a rsi script that looks to load_pulse to be down then up
 

geposted Sun 04 Apr 21 @ 5:10 pm
NicotuxHome userMember since 2014
@locodog :
There is a side effect with the script ^^ automix 2 decks only change when playing from action deck
so that the script may also not work at all when run from deck 3 or 4 when automix is deck 1&2
button from deck 2 with automix in deck 1 does not work as well
deck "playing" can't be used for load_pulse because it's active in the opposite deck
 

geposted Sun 04 Apr 21 @ 5:43 pm
Thanks for all the help. Will try all to suggestions shortly.
So far:
Set Automix to 'automixDualDeck'
In Mapping select ONSONGLOAD add the script:
deck master video_fx 'shader' & deck master effect_string "video" 1 +1 & deck master video_fx 'cover'

Its close, but every second shader is skipped.
On single deck mode for automix, every second track is missing cover and shader.
 

geposted Mon 05 Apr 21 @ 12:57 am


(Alte Themen und Foren werden automatisch geschlossen)