Rank: Member
Groups: Registered
Joined: 8/8/2019(UTC) Posts: 26 Location: Georgia Was thanked: 2 time(s) in 2 post(s)
|
I have one PTZoptics camera available and am working on various ways to shift between a closeup of the pulpit and a wider angle view of the choir.
So far my best effort (pending a second camera) is to fade to an image of the cross at the front of the sanctuary, then shift the camera, then after the shift is complete fade back to the live camera. This works pretty well but occasionally I click on the wrong button and all my viewers get to see the camera jerking around. Slowing the PTZ movement to a crawl helps but is less than ideal.
Is there a way to automate this process, perhaps with a script, wherein pressing or clicking one button would make this three step transition?
Thanks many times over. You have been very helpful as I move up the learning curve and your time and knowledge greatly appreciated.
John
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,289 Location: Belgium Thanks: 296 times Was thanked: 967 time(s) in 801 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,289 Location: Belgium Thanks: 296 times Was thanked: 967 time(s) in 801 post(s)
|
one option create 2 virtual PTZ positions, clicking on either one of them will move the camera to the preset position. https://youtu.be/pI4uRkzO_TQ?t=194As you don't want to see the movement create a shortcut to overlay the image of the cross under same shortcut key tell it to PTZMovetovirtuaInputposition (= the other position) (duplicate this to a shortcut to go back to the other view) in your Cross Image put in a OnOverlayIn trigger to turn off the overlay after a certain delay Scripting would then basically be similar and could also be called with a shortcut - overlay image - move camera position - delay a bit - remove overlay
|
|
|
|
Rank: Member
Groups: Registered
Joined: 8/8/2019(UTC) Posts: 26 Location: Georgia Was thanked: 2 time(s) in 2 post(s)
|
Thanks to you guys I now have 2 working scripts started by shortcuts. One(F1) fades to the image and shifts to the pulpit ,sleeps 2 seconds then fades back to the camera. The other (F2) does the same but switches to the choir.
It would be nice (allowing for user error) to add an IF clause such that if the camera was already on the pulpit and you pressed F1 again the script would not activate. Since variables cannot be stored globally in vMix's VBnet, I need some other way to tell the code that the camera is already where you are trying to send it. Perhaps there is a way to read the virtual camera being used, or that F2 was the last key pressed and make a comparison.
Not critical to my application but it would be a nice touch.
Thanks again
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,289 Location: Belgium Thanks: 296 times Was thanked: 967 time(s) in 801 post(s)
|
As you are working with PTZ you can not check in your script which position is actie but and as you said one cannot store a variable but
you can simulate this by having a unused title and store a variable in a textbox & read/write your variable there and IF it from your script Could use a text file too but above is quicker and simpler not to mention that one can see the variable in your inputs (especially helpful if you use a word ;-) )
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close