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
slxxi  
#1 Posted : Thursday, August 17, 2017 1:35:24 PM(UTC)
slxxi

Rank: Advanced Member

Groups: Registered
Joined: 8/15/2017(UTC)
Posts: 36
Location: Berlin

Was thanked: 1 time(s) in 1 post(s)
Is there a way for the API to send multiple Inputs or Values at once?

Especially the following are interesting to me:

Shut on/off multiple MultiViewOverlays at once, currently it's like
/api/?Function=MultiViewOverlayOn&Input=4&Value=1
/api/?Function=MultiViewOverlayOn&Input=4&Value=3
/api/?Function=MultiViewOverlayOn&Input=4&Value=5

is there a way to combine it somehow like this (results as invalid parameters)
/api/?Function=MultiViewOverlayOn&Input=4&Value=1,3,5


Is there a way to set the Textfields of different Inputs at once

API/?Function=SetText&Input=1&SelectedName=MyText&Value=test
API/?Function=SetText&Input=2&SelectedName=MyText&Value=test
API/?Function=SetText&Input=3&SelectedName=MyText&Value=test

becomes something like?
API/?Function=SetText&Input=1&Input=2&Input=3&SelectedName=MyText&Value=test
or
API/?Function=SetText&Input=1,2,3&SelectedName=MyText&Value=test


Thanks in advance
stigaard  
#2 Posted : Thursday, August 17, 2017 5:18:51 PM(UTC)
stigaard

Rank: Advanced Member

Groups: Registered
Joined: 5/20/2015(UTC)
Posts: 493
Man
Denmark
Location: Copenhagen, Denmark

Thanks: 389 times
Was thanked: 100 time(s) in 79 post(s)
Yes there is.

Take a look at http://www.vmix.com/know...-using-scripting-and-api for more info.

Basically you make one (post) request where the data includes Function=ScriptStartDynamic, and the Value is your commands - one on each line, actually pretty equal to the ones you provided.
slxxi  
#3 Posted : Thursday, August 17, 2017 5:54:39 PM(UTC)
slxxi

Rank: Advanced Member

Groups: Registered
Joined: 8/15/2017(UTC)
Posts: 36
Location: Berlin

Was thanked: 1 time(s) in 1 post(s)
Thanks for your replay, but i guess scripting is only availible to the 4K/pro and not the HD version of vmix...
stigaard  
#4 Posted : Friday, August 18, 2017 3:17:34 AM(UTC)
stigaard

Rank: Advanced Member

Groups: Registered
Joined: 5/20/2015(UTC)
Posts: 493
Man
Denmark
Location: Copenhagen, Denmark

Thanks: 389 times
Was thanked: 100 time(s) in 79 post(s)
slxxi wrote:
Thanks for your replay, but i guess scripting is only availible to the 4K/pro and not the HD version of vmix...


Hi slxxi.

You are not limited to send the requests to the Web API via scripting, you can send the request from any application or browser.
jet  
#5 Posted : Friday, August 18, 2017 10:59:23 AM(UTC)
jet

Rank: Advanced Member

Groups: Registered
Joined: 11/14/2012(UTC)
Posts: 261
Man
Location: Finland

Thanks: 118 times
Was thanked: 15 time(s) in 13 post(s)
slxxi wrote:
i guess scripting is only availible to the 4K/pro and not the HD version of vmix...


In my opinion scripting should be available for HD customers also.

I hope Martin will enable it in v20.

Kind regards,
Jan
stigaard  
#6 Posted : Friday, August 18, 2017 4:27:15 PM(UTC)
stigaard

Rank: Advanced Member

Groups: Registered
Joined: 5/20/2015(UTC)
Posts: 493
Man
Denmark
Location: Copenhagen, Denmark

Thanks: 389 times
Was thanked: 100 time(s) in 79 post(s)
I think the price for the 4K and Pro version are so low, and the features are so great and powerful, so you should support vMix by buying the more expensive versions (which is not expensive after all!).
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.