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
Grappa  
#1 Posted : Friday, November 19, 2021 8:55:40 PM(UTC)
Grappa

Rank: Newbie

Groups: Registered
Joined: 7/6/2021(UTC)
Posts: 4
Israel
Location: Tel Aviv-Yafo

Thanks: 1 times
Hello,

Any idea how to trigger script from internal VMIX event without using external application?
Try to control Panasonic RP-150 PTZ controller camera selection, when specific camera is selected on PVW same camera will be selected on the Panasonic controller.

The script for controlling Panasonic PTZ (different script for every camera):

Dim client = WebRequest.create("http://xx.xx.xx.xx/cgi-bin/aw_cam?cmd=XCN:01:1&res=1")
Dim response = client.GetResponse()[/b][/b]



doggy  
#2 Posted : Friday, November 19, 2021 9:02:48 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 3,577
Belgium
Location: Belgium

Thanks: 197 times
Was thanked: 642 time(s) in 525 post(s)
If i understand your question correctly :

Script checks which input( camera) is in PVW , performs some logic to triggers in script functions or another script accordingly
Grappa  
#3 Posted : Friday, November 19, 2021 9:15:25 PM(UTC)
Grappa

Rank: Newbie

Groups: Registered
Joined: 7/6/2021(UTC)
Posts: 4
Israel
Location: Tel Aviv-Yafo

Thanks: 1 times
yes,

the script need to be triggered from camera PVW event.

every time a specific camera is selected to PVW an http command (as describe above) is send to PTZ controller to change camera
doggy  
#4 Posted : Friday, November 19, 2021 9:21:40 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 3,577
Belgium
Location: Belgium

Thanks: 197 times
Was thanked: 642 time(s) in 525 post(s)
Originally Posted by: Grappa Go to Quoted Post
yes,

the script need to be triggered from camera PVW event.

every time a specific camera is selected to PVW an http command (as describe above) is send to PTZ controller to change camera


As mentioned before a (constant running) script needs to check what is in PVW . One can pull that information from the API XML in the script

https://forums.vmix.com/...86-Scripting-for-Dummies
MTB  
#5 Posted : Saturday, November 20, 2021 6:09:05 AM(UTC)
MTB

Rank: Newbie

Groups: Registered
Joined: 10/22/2020(UTC)
Posts: 1
Nepal

Originally Posted by: doggy Go to Quoted Post
Originally Posted by: Grappa Go to Quoted Post
yes,

the script need to be triggered from camera PVW event.

every time a specific camera is selected to PVW an http command (as describe above) is send to PTZ controller to change camera


As mentioned before a (constant running) script needs to check what is in PVW . One can pull that information from the API XML in the script

https://forums.vmix.com/...86-Scripting-for-Dummies


Thought I remembered the same subject passing trough these forums on a earlier moment.
Want to take a guess how you handled repetitive questions back then? ;)
Users browsing this topic
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.