logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
john30120  
#1 Posted : Thursday, December 26, 2019 1:50:39 PM(UTC)
john30120

Rank: Member

Groups: Registered
Joined: 8/8/2019(UTC)
Posts: 26
United States
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
doggy  
#2 Posted : Thursday, December 26, 2019 6:33:19 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,289
Belgium
Location: Belgium

Thanks: 296 times
Was thanked: 967 time(s) in 801 post(s)
Could be done with a script but would try with triggers or combined shortcuts first (a bit easier)

https://www.youtube.com/watch?v=iPsCsvDU1aA

https://www.youtube.com/watch?v=2BJvcJslxvk

https://www.youtube.com/watch?v=fZGEGZciS9Q
doggy  
#3 Posted : Thursday, December 26, 2019 10:33:02 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,289
Belgium
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=194

As 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
john30120  
#4 Posted : Sunday, December 29, 2019 6:44:33 AM(UTC)
john30120

Rank: Member

Groups: Registered
Joined: 8/8/2019(UTC)
Posts: 26
United States
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
doggy  
#5 Posted : Sunday, December 29, 2019 4:52:14 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,289
Belgium
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 ;-) )
Users browsing this topic
Guest (3)
Similar Topics
Access playlist items using scripts? (General Discussion)
by Mollertom 7/12/2021 4:22:56 AM(UTC)
Change Recording Names Using Scripts? (General Discussion)
by CooperB 3/4/2021 2:05:09 AM(UTC)
Format when using ScriptStartDynamic withTCP (3rd Party Software and Development)
by dberman 11/10/2020 2:05:23 AM(UTC)
How can I modify the multiview of an entry using scripts (General Discussion)
by Papo 6/16/2020 5:38:46 AM(UTC)
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.