Rank: Advanced Member
Groups: Registered
Joined: 8/9/2020(UTC) Posts: 156
Thanks: 3 times Was thanked: 20 time(s) in 19 post(s)
|
i only want to use it with virtual PTZ not actual cameras.. i heard Martin say with hardware this cant be done but i thought it might be possible with virtual PTZ as its just software ? a long time ago i had an arduino and i managed to get this ramp effect working for zoom over LANC to a sony camera and it looked good.. it took me ages and what i did was very hacked together but it did work.. my coding skills are novice at best so if you have any suggestions for the code i could try i would appreciate any help..
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,215 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: mtone i only want to use it with virtual PTZ not actual cameras.. i heard Martin say with hardware this cant be done but i thought it might be possible with virtual PTZ as its just software ? a long time ago i had an arduino and i managed to get this ramp effect working for zoom over LANC to a sony camera and it looked good.. it took me ages and what i did was very hacked together but it did work.. my coding skills are novice at best so if you have any suggestions for the code i could try i would appreciate any help.. I had a look at the existing available functions and current status optionds and highly doubt it would be possible within the vMix scripting Doesn't mean it would not be possible with external scripting but i doubt it, you might think it would be only software but you will need to interface with hardware to ( joystick) Question also is it worth the effort for limited result ? on another note , would have been nice to have started this subject/discussion in a separate posting rather than a post aimed at giving general coding tidbits
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 10/7/2020(UTC) Posts: 3 Location: Tallinn
|
Hello! Is there any options to update stream settings via Web API? Can't find any methods in api to do that. Its impossible at this moment?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,215 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: Instafeed Hello! Is there any options to update stream settings via Web API? Can't find any methods in api to do that. Its impossible at this moment? No, correct, correct, why ?
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 8/9/2020(UTC) Posts: 2 Location: Limbo
|
Going down the rabbit hole that is Vmix capabilities. I had an idea when it comes to Data Sources and linking to 'SetImage' command depending on what the data states.
Basically I have ingested data and I would like to make a script that looks at a particular string and then sets the image in another data source depending on the string.
I already have all my data ingested properly, it's the 'SetImage' capabilities I'm unsure of to check data and creating an a trigger from that.
Any insight is helpful, much appreciated.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,215 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: Crash I had an idea when it comes to Data Sources and linking to 'SetImage' command depending on what the data states.
Basically I have ingested data and I would like to make a script that looks at a particular string and then sets the image in another data source depending on the string.
I already have all my data ingested properly, it's the 'SetImage' capabilities I'm unsure of to check data and creating an a trigger from that.
Any insight is helpful, much appreciated. you want to put an image into another data source based on a first data source ? or are you trying to display an image say based on its name or so ?
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 8/9/2020(UTC) Posts: 2 Location: Limbo
|
I'm trying to control the Image via what another Data Source is asking for.
Example:
Data Source 1 = "Red"
Image Source = Red Square Picture
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,215 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: Crash I'm trying to control the Image via what another Data Source is asking for.
Example:
Data Source 1 = "Red"
Image Source = Red Square Picture https://forums.vmix.com/...with-extern-data-sourcesSimilar when using a script , get the "Red" and translate it to your needs
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/22/2018(UTC) Posts: 94 Location: Worthing Thanks: 1 times Was thanked: 4 time(s) in 3 post(s)
|
Hi, as suggested by Doggy I am posting this simple VB.net code that I have created thanks to help on this forum.
The code is for a Title which has 6 pages that I want to loop through.
dim x as integer Dim Index as integer =0 Do while Index <=100 for x = 1 to 6 sleep(10000) api.Function("SelectIndex",Input:="Test.gtxml",Value:=x) next x index +=1 loop
I then added 2 shortcuts using the function "StartScript" and "StopScript" to control it.
|
2 users thanked FrankLeggett for this useful post.
|
|
|
Rank: Member
Groups: Registered
Joined: 11/6/2020(UTC) Posts: 21 Location: Saint-Petersburg Thanks: 6 times Was thanked: 1 time(s) in 1 post(s)
|
Hi!
How to get state of Input's MultiView Overlay?
and to create condition, based on this state?
for example if now Overlay 1 is "Green" - change it to "Blue": API.Function("SetMultiViewOverlay",Input:="InputOne",Value:="1,Blue")
and vice versa, if its "Blue" - change it to "Green": API.Function("SetMultiViewOverlay",Input:="InputOne",Value:="1,Green")
Thank you!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,215 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: svetotehnik Hi!
How to get state of Input's MultiView Overlay?
and to create condition, based on this state?
for example if now Overlay 1 is "Green" - change it to "Blue": API.Function("SetMultiViewOverlay",Input:="InputOne",Value:="1,Blue")
and vice versa, if its "Blue" - change it to "Green": API.Function("SetMultiViewOverlay",Input:="InputOne",Value:="1,Green")
Thank you! Check the Overlay @ index x of the input for the Key to match the used input key from the API XML
|
|
|
|
Rank: Member
Groups: Registered
Joined: 11/6/2020(UTC) Posts: 21 Location: Saint-Petersburg Thanks: 6 times Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: doggy Check the Overlay @ index x of the input for the Key to match the used input key from the API XML Thanks for answer! Where is my mistake(s)? Condition does not works Code:dim xml as string = API.XML()
dim input_one_state as string = ""
dim x as new system.xml.xmldocument
x.loadxml(xml)
input_one_state = (x.SelectSingleNode("//input[@overlay='0']/@key").Value)
if (input_one_state = '1f9776fd-ea21-4ef3-90ab-a45abc073296')
API.Function("SetMultiViewOverlay",Input:="InputOne",Value:="1,Green")
else
API.Function("SetMultiViewOverlay",Input:="InputOne",Value:="1,Blue")
return
end if
and could you recommend some guide for navigation in xml?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/22/2018(UTC) Posts: 94 Location: Worthing Thanks: 1 times Was thanked: 4 time(s) in 3 post(s)
|
How to loop DataSourceSelectRow (Answer supplied by Doggy)
dim x as integer Dim Index as integer =0 'API.Function("PreviewInput",Input:="race1.mp4") Do while Index <=100 for x = 1 to 5 api.Function("DataSourceSelectRow",Value:="Excel Workbook,Sheet," & x.tostring)sleep(10000) next x index +=1 loop
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,215 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 11/12/2020(UTC) Posts: 1 Was thanked: 1 time(s) in 1 post(s)
|
I would like to thank anyone who posted here. Really useful information, links that many "dummies" can use.
Thank you, guys
|
1 user thanked Zen Den for this useful post.
|
|
|
Rank: Member
Groups: Registered
Joined: 11/6/2020(UTC) Posts: 21 Location: Saint-Petersburg Thanks: 6 times Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: doggy Thank you!
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 11/20/2020(UTC) Posts: 1 Location: FCDSCS
|
I'm really stuck on a little script that I wrote to fade in/out an input with the alpha value. mxplayer pc
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,215 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: rajputaman04 I'm really stuck on a little script that I wrote to fade in/out an input with the alpha value.
So are we , would say due to lack of information
|
2 users thanked doggy for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/20/2020(UTC) Posts: 74 Thanks: 13 times Was thanked: 9 time(s) in 9 post(s)
|
Hi Folks, I am new at this forum and new in vmix scripting. I (due to an actual situation) would like to adjust the x position of a certain Input stepwise to the left or right.
so my idea is to programm (in my language) - take actual position of input2 - add (or substract) 0,1 to/from actual position
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/20/2014(UTC) Posts: 2,721 Location: Bordeaux, France Thanks: 243 times Was thanked: 794 time(s) in 589 post(s)
|
|
|
|
|
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