Quick Sign In:  

Forum: VirtualDJ Plugins

Topic: Scripting Clipbank

This topic is old and might contain outdated or incorrect information.

At work at the moment so can't really test this, but I am assuming video_fx_button +1 or video_fx_button -1 doesn't work.

How do I make a loop in VDJScript that will basically count 1 to 12 (or 12 to 1) and then reset to the other end of the loop value when it goes out of bounds...

Cheers,

Roy
 

Posted Mon 13 Dec 10 @ 8:27 am
You can use cycle, but would need to test for each possible value of the variable to execute an appropriate action, e.g:

cycle 'vfx' 12 & var_equal 'vfx' 0 ? video_fx_button 1 : var_equal 'vfx' 1 ? video_fx_button 2 : var_equal 'vfx' 2 ? video_fx_button 3 : var_equal 'vfx' 3 ? video_fx_button 4 : var_equal 'vfx' 4 ? video_fx_button 5 : var_equal 'vfx' 5 ? video_fx_button 6 : var_equal 'vfx' 6 ? video_fx_button 7 : var_equal 'vfx' 7 ? video_fx_button 8 : var_equal 'vfx' 8 ? video_fx_button 9 : var_equal 'vfx' 9 ? video_fx_button 10 : var_equal 'vfx' 10 ? video_fx_button 11 : video_fx_button 12
 

Posted Mon 13 Dec 10 @ 11:42 am
Excellent thank you...

Cheers,

Roy
 

Posted Mon 13 Dec 10 @ 12:29 pm


(Old topics and forums are automatically closed)