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
andreypetr  
#1 Posted : Sunday, July 14, 2019 2:12:35 AM(UTC)
andreypetr

Rank: Advanced Member

Groups: Registered
Joined: 1/31/2017(UTC)
Posts: 93
Location: KZ

Thanks: 3 times
Was thanked: 10 time(s) in 10 post(s)
Hello.
Recently found out about scripting capabilities in vMix. I am planning to use it to shuffle ads automatically that are inserted in multiview of an input. So far I am using WEB Scripting and was able to change multiview inputs, but is it possible:
1) to loop a script?
2) to use IF statements?
3) to run the script if a certain input became active?

Thanks!
doggy  
#2 Posted : Sunday, July 14, 2019 2:26:26 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 292 times
Was thanked: 955 time(s) in 790 post(s)
1) yes
2) yes
3) would guess so by checking the state on the input or the active input number from the /API xml
andreypetr  
#3 Posted : Sunday, July 14, 2019 2:27:41 AM(UTC)
andreypetr

Rank: Advanced Member

Groups: Registered
Joined: 1/31/2017(UTC)
Posts: 93
Location: KZ

Thanks: 3 times
Was thanked: 10 time(s) in 10 post(s)
Originally Posted by: doggy Go to Quoted Post
1) yes
2) yes
3) would guess so by checking the state on the input from the /API xml


Please tell me how would I do 1-2. Didn't find any info in Documentation.
doggy  
#4 Posted : Sunday, July 14, 2019 2:33:14 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 292 times
Was thanked: 955 time(s) in 790 post(s)
vMix Scripting supports the powerful and easy to understand VB.NET language when writing your script.
doggy  
#5 Posted : Sunday, July 14, 2019 2:35:08 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 292 times
Was thanked: 955 time(s) in 790 post(s)
for example

Code:
Do While true


if .....

end if

Loop
Users browsing this topic
Guest
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.