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
foxy  
#1 Posted : Friday, July 29, 2022 6:52:00 PM(UTC)
foxy

Rank: Newbie

Groups: Registered
Joined: 5/13/2022(UTC)
Posts: 3
Australia
Location: melbourne

I might be missing something, but i'd like a cleaner way to assign the currently previewed input to one of the dynamic inputs.

the way i currently do it is, i use a script with the following:

dim VMix_XML as new system.xml.xmldocument
VMix_XML.loadxml(API.XML)
API.Function("setDynamicInput1",Value:=CInt(VMix_XML.selectSingleNode("/vmix/preview").innerText))

whilst this *does* work, it might be useful to have some keyword we can use in the setDynamicInput1 (2,3,4) function like [preview] or [active] which does this for us.

it is possible there is currently a way to do this that isn't documented, but i couldn't find it anywhere. i saw some reference to using the number 0 for active, but could not find one for preview - i must admit i have not tried 0 as my use case is for preview, not active.

doggy  
#2 Posted : Friday, July 29, 2022 7:43:52 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 4,159
Belgium
Location: Belgium

Thanks: 243 times
Was thanked: 748 time(s) in 610 post(s)
section HTTP WEB API from the helpfiles ?

Quote:
Input

Specify an input by its number starting from 1.

0 can be used for Preview and -1 for Active.
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.