Sign In:     


Forum: VirtualDJ Technical Support

Topic: Change camera source using vdjscript and pad?
I have a novation launch pad and am slowly moving all the video functions to one page. All good so far, I can jump back and forth video sources (shader -> camera -> spout input etc). LEDs work, it is actually pretty good.

As a bonus I would like to programme a pad so that when camera is the source, that pad will step through the camera sources (internal -> web cam -> OBS etc).

I have tried
video_source_select "camera"  & effect_slider 2 0%
to test whether I can simply jump the camera back to the first source, it switches to the camera OK, but doesn't change which camera is selected. I also tried explicitly naming the camera source
video_source_select "camera"  & effect_slider 'Integrated Camera'
. Nothing I have tried works.

Any suggestions? @locodog ?
 

Posted 16 hours ago
you're calling slider 2 of slot 1. For AOV slot specify as such.

effect_slider audioonlyvisualisation 2 0.5
 

That's awesome (but obscure), thanks. Is there a way to count how many cameras there are so a pad press increases the value by 1 / (number of cameras)? That way a single press will jump to the next camera.
 

get_effect_slider_text audioonlyvisualisation 2 & param_cast int