Rank: Member
Groups: Registered
Joined: 2/2/2019(UTC) Posts: 13 Was thanked: 2 time(s) in 1 post(s)
|
Is there a way to get status of an input/overlay etc via TCP API?
I'm writing just macros script and I can successfully send commands but I do not understand how to receive/get status of current Active input,Preview input etc.
Thank you
|
|
|
|
Rank: Member
Groups: Registered
Joined: 2/2/2019(UTC) Posts: 13 Was thanked: 2 time(s) in 1 post(s)
|
I've figured it out so here is a snippet if someone needs it: Code:
function GetValue(string, num)
if string == "active" then
RawCommsNetSendString( Vmix, "XMLTEXT vmix/" .. "active" .. "\r\n")
elseif string == "preview" then
RawCommsNetSendString( Vmix, "XMLTEXT vmix/" .. "preview" .. "\r\n")
elseif string == "overlay" then
RawCommsNetSendString( Vmix, "XMLTEXT vmix/" .. "overlays/overlay[" .. num .. "]" .. "\r\n")
--elseif stringe == "" then
-- RawCommsNetSendString( Vmix, "XMLTEXT vmix/" .. "" .. "\r\n")
end
Sleep(10) -- wait 10ms before grabbing data
receive = RawCommsNetGetIncomingPacketCount( Vmix );
data = RawCommsNetGetInPacketAsString( Vmix, receive )
--VSLog( data )
data = data:sub(12) -- TRIM XLMTEXT OK
VSLog(string .. " " .. data)
return data
end
|
2 users thanked gokily for this useful post.
|
|
|
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.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close