logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

26 Pages<12345>»
Options
Go to last post Go to first unread
mtone  
#41 Posted : Monday, August 24, 2020 2:48:56 AM(UTC)
mtone

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..
doggy  
#42 Posted : Monday, August 24, 2020 5:05:52 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 294 times
Was thanked: 960 time(s) in 794 post(s)
Originally Posted by: mtone Go to Quoted Post
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

Instafeed  
#43 Posted : Wednesday, October 7, 2020 6:08:08 AM(UTC)
Instafeed

Rank: Newbie

Groups: Registered
Joined: 10/7/2020(UTC)
Posts: 3
Estonia
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?
doggy  
#44 Posted : Wednesday, October 7, 2020 11:16:42 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 294 times
Was thanked: 960 time(s) in 794 post(s)
Originally Posted by: Instafeed Go to Quoted Post
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 ?
Crash  
#45 Posted : Friday, October 23, 2020 11:42:59 AM(UTC)
Crash

Rank: Newbie

Groups: Registered
Joined: 8/9/2020(UTC)
Posts: 2
United States
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.
doggy  
#46 Posted : Friday, October 23, 2020 3:40:21 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 294 times
Was thanked: 960 time(s) in 794 post(s)
Originally Posted by: Crash Go to Quoted Post
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 ?

Crash  
#47 Posted : Sunday, October 25, 2020 2:52:33 PM(UTC)
Crash

Rank: Newbie

Groups: Registered
Joined: 8/9/2020(UTC)
Posts: 2
United States
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
doggy  
#48 Posted : Sunday, October 25, 2020 5:54:21 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 294 times
Was thanked: 960 time(s) in 794 post(s)
Originally Posted by: Crash Go to Quoted Post
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-sources

Similar when using a script , get the "Red" and translate it to your needs
FrankLeggett  
#49 Posted : Tuesday, October 27, 2020 8:17:44 PM(UTC)
FrankLeggett

Rank: Advanced Member

Groups: Registered
Joined: 11/22/2018(UTC)
Posts: 94
United Kingdom
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.
thanks 2 users thanked FrankLeggett for this useful post.
doggy on 10/27/2020(UTC), studiodelta on 4/13/2021(UTC)
svetotehnik  
#50 Posted : Friday, November 6, 2020 7:23:34 PM(UTC)
svetotehnik

Rank: Member

Groups: Registered
Joined: 11/6/2020(UTC)
Posts: 21
Russian Federation
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!
doggy  
#51 Posted : Friday, November 6, 2020 7:48:40 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 294 times
Was thanked: 960 time(s) in 794 post(s)
Originally Posted by: svetotehnik Go to Quoted Post
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
svetotehnik  
#52 Posted : Friday, November 6, 2020 8:42:59 PM(UTC)
svetotehnik

Rank: Member

Groups: Registered
Joined: 11/6/2020(UTC)
Posts: 21
Russian Federation
Location: Saint-Petersburg

Thanks: 6 times
Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: doggy Go to Quoted Post
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?
FrankLeggett  
#53 Posted : Wednesday, November 11, 2020 8:00:32 AM(UTC)
FrankLeggett

Rank: Advanced Member

Groups: Registered
Joined: 11/22/2018(UTC)
Posts: 94
United Kingdom
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
doggy  
#54 Posted : Wednesday, November 11, 2020 8:29:47 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 294 times
Was thanked: 960 time(s) in 794 post(s)
Originally Posted by: svetotehnik Go to Quoted Post


And could you recommend some guide for navigation in xml?


https://www.w3schools.com/xml/xpath_syntax.asp

thanks 1 user thanked doggy for this useful post.
svetotehnik on 11/12/2020(UTC)
Zen Den  
#55 Posted : Thursday, November 12, 2020 2:25:40 AM(UTC)
Zen Den

Rank: Newbie

Groups: Registered
Joined: 11/12/2020(UTC)
Posts: 1
Canada

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
thanks 1 user thanked Zen Den for this useful post.
RingsideReport on 7/15/2022(UTC)
svetotehnik  
#56 Posted : Thursday, November 12, 2020 6:05:00 AM(UTC)
svetotehnik

Rank: Member

Groups: Registered
Joined: 11/6/2020(UTC)
Posts: 21
Russian Federation
Location: Saint-Petersburg

Thanks: 6 times
Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: svetotehnik Go to Quoted Post


And could you recommend some guide for navigation in xml?


https://www.w3schools.com/xml/xpath_syntax.asp



Thank you!

rajputaman04  
#57 Posted : Friday, November 20, 2020 5:49:50 PM(UTC)
rajputaman04

Rank: Newbie

Groups: Registered
Joined: 11/20/2020(UTC)
Posts: 1
India
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
doggy  
#58 Posted : Friday, November 20, 2020 6:55:09 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 294 times
Was thanked: 960 time(s) in 794 post(s)
Originally Posted by: rajputaman04 Go to Quoted Post
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

thanks 2 users thanked doggy for this useful post.
Pepsi(~) on 11/21/2020(UTC), RingsideReport on 7/15/2022(UTC)
Chris Daum  
#59 Posted : Tuesday, November 24, 2020 2:35:30 AM(UTC)
Chris Daum

Rank: Advanced Member

Groups: Registered
Joined: 11/20/2020(UTC)
Posts: 74
Man
Germany

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

DWAM  
#60 Posted : Tuesday, November 24, 2020 2:41:13 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
Hi Chris and welcome to vMix

Finally switched to vMix after so many years with ATEMs?

Check vMix API : https://www.vmix.com/hel...utFunctionReference.html

SetPanX is the command you're looking for
Users browsing this topic
Guest (18)
26 Pages<12345>»
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.