Se Connecter:     


Forum: General Discussion

Sujet: VDJ Script & Loop Detection

Ce topic est ancien et peut contenir des informations obselètes ou incorrectes.

Not sure if this is the right section to post this question, sorry if not...

Is it possible to detect if a track has a loop named "Loop 1" and then highlight one of the custom buttons? Basically I want to use Loop_Load_Prepare "loop 1" but have the button high lighted when the track is loaded to indicate there is a "loop 1". Loop_Load "loop 1" does this but the execution when the button is pressed is different.

Thanks in advance for the help....
 

Posté Mon 13 Apr 15 @ 11:46 am
Actually, the more I research this, I realise it will need to be implemented at skin level. I guess the only bit I'm missing is the ability to query whether a loop of a certain name exists?
 

Try..
loop_load "loop 1" ? on & loop_load_prepare "loop 1" : off & loop_load_prepare "loop 1"

or this (which will blink if the Loop 1 is active ) ...
loop_load "loop 1" ? loop_load_prepare "loop 1" ? blink & loop_load_prepare "loop 1" : on & loop_load_prepare "loop 1" : off & loop_load_prepare "loop 1"
 

Thanks and works perfectly....

Having studied what has been done, I missed the bit in the wiki that states that actions can be queries, doh!.

loop_load "loop 1" ? on & loop_load_prepare "loop 1" : off & loop_load_prepare "loop 1"

Just as part of an education process:

loop_load "loop 1" ? - queries if loop 1 exists.
on & loop_load_prepare "loop 1" - Result true i.e. loop 1 exists execute loop_load_prepare "loop 1". What is the function of "on", is that the status of button illumination?
off & loop_load_prepare "loop 1" - Result false i.e. loop 1 doesn't exist execute loop_load_prepare "loop 1". I presume you need something in the false state but would "off" on it's own be good i.e. leave the button illumination off?


 



(Les anciens sujets et forums sont automatiquement fermés)