logo

Live Production Software Forums


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

Notification

Icon
Error

26 Pages«<1112131415>»
Options
Go to last post Go to first unread
nikosman88  
#241 Posted : Sunday, May 1, 2022 7:50:02 PM(UTC)
nikosman88

Rank: Advanced Member

Groups: Registered
Joined: 12/24/2021(UTC)
Posts: 543
Greece
Location: athens

Thanks: 130 times
Was thanked: 74 time(s) in 70 post(s)
Originally Posted by: doggy Go to Quoted Post


understand the difference in language but i assume you also have a different name for folder, file and input ? So are you trying to get a (the last) folder (as list or image folder) into vMix or a (the last) file in that folder ?

There is the function "AddInput" (see shortcuts) to use after you located the right folder/file first

Seeing your question is in this thread (instead of a seperate one ) I also assume you have read through the other post to gain insight into vMix (vb.net) scripting and the use of its available functions



Yes we have but sometimes its difficult to find the exact word and google translate doesnt help or the way it translates is not very good. Anyway thank you again for your help.
QuintvK  
#242 Posted : Tuesday, May 17, 2022 1:28:19 AM(UTC)
QuintvK

Rank: Member

Groups: Registered
Joined: 8/2/2021(UTC)
Posts: 12
Netherlands
Location: Utrecht

Thanks: 2 times
Was thanked: 4 time(s) in 3 post(s)
Hi coders,

I'm looking for a way to change the colors of a gradient in an active title. Unfortunately this can't be done in the new Colors-tab. Found out that it is possible by making changes in the GtXML file, and save it.

Now if the show would run on one system, I would be ok with this. But our show runs on multiple systems and we load it as a bundle, so I do not have a filepath that i would be able to load as XML in a script.

Long story short: is there a way to load the XML of an active title ?

Thanks for your help!
Joeboe  
#243 Posted : Tuesday, May 17, 2022 4:01:03 AM(UTC)
Joeboe

Rank: Advanced Member

Groups: Registered
Joined: 4/16/2017(UTC)
Posts: 578
Location: jamaica

Thanks: 77 times
Was thanked: 32 time(s) in 31 post(s)
this is a dummy...can someone post a script to fade one audio, source:A 85% and Source:B 0% at the same time...I tried the script builder in vMix, but it does not seem to work.. I have used this for many other scripts, but for some reason it just does not work anymore .....I need some help here
doggy  
#244 Posted : Tuesday, May 17, 2022 4:33:22 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: QuintvK Go to Quoted Post
Hi coders,

Long story short: is there a way to load the XML of an active title ?



same as you would with any other xml structured file

and the "active" title details can be retrieved from the API XML

The actual filepath of that title can be found in the preset file (will need some XML digging ;-) )
thanks 1 user thanked doggy for this useful post.
QuintvK on 5/17/2022(UTC)
doggy  
#245 Posted : Tuesday, May 17, 2022 4:46:11 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: Joeboe Go to Quoted Post
this is a dummy...can someone post a script to fade one audio, source:A 85% and Source:B 0% at the same time...I tried the script builder in vMix, but it does not seem to work.. I have used this for many other scripts, but for some reason it just does not work anymore .....I need some help here


As mentioned in the begging of this post vMix fuctions can be use in different forms of "scripting" code and you didnt mention which one. This is what script builder also does , write them in any of these forms to be used as single instruction or combined with others in one "script"" or as part of script with logic incorporated .

If the function works for you as desired with shortcuts (which one can combine multiple of) but not as "translated" with scriptbuilder it would be advice to contact the developer of it.


Note: SetVolumeFade needs an input reference and a audio level comma duration as value
Joeboe  
#246 Posted : Tuesday, May 17, 2022 4:52:13 AM(UTC)
Joeboe

Rank: Advanced Member

Groups: Registered
Joined: 4/16/2017(UTC)
Posts: 578
Location: jamaica

Thanks: 77 times
Was thanked: 32 time(s) in 31 post(s)
Like I have mentioned, it worked well on all my other setups, but for some reason, it is not working anymore....I use script builder, and yes, I know to use the (,) comma ...this is how I had it setup....Source A 85,6000, source B 0,6000.....it works on another system, but just does not work on the system I am using at present.....I did a few other scripts earlier that works, but for some reason Script builder does not work with this laptop
QuintvK  
#247 Posted : Tuesday, May 17, 2022 5:01:21 AM(UTC)
QuintvK

Rank: Member

Groups: Registered
Joined: 8/2/2021(UTC)
Posts: 12
Netherlands
Location: Utrecht

Thanks: 2 times
Was thanked: 4 time(s) in 3 post(s)
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: QuintvK Go to Quoted Post
Hi coders,

Long story short: is there a way to load the XML of an active title ?



same as you would with any other xml structured file

and the "active" title details can be retrieved from the API XML

The actual filepath of that title can be found in the preset file (will need some XML digging ;-) )

Thanks for the help Doggy! I was already able to retrieve title details throught the API XML and find the filepath in the preset file, but i cant figure out how to load the vmix preset xml once it is packed in a bundle.

Is this even possible?
doggy  
#248 Posted : Tuesday, May 17, 2022 5:26:53 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: Joeboe Go to Quoted Post
but for some reason Script builder does not work with this laptop


With al due respect your post then does not belong here nor is scriptbuilder (more like a Macro builder) part of this thread
doggy  
#249 Posted : Tuesday, May 17, 2022 5:43:48 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: QuintvK Go to Quoted Post
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: QuintvK Go to Quoted Post
Hi coders,

Long story short: is there a way to load the XML of an active title ?



same as you would with any other xml structured file

and the "active" title details can be retrieved from the API XML

The actual filepath of that title can be found in the preset file (will need some XML digging ;-) )

Thanks for the help Doggy! I was already able to retrieve title details throught the API XML and find the filepath in the preset file, but i cant figure out how to load the vmix preset xml once it is packed in a bundle.

Is this even possible?


the bundle is a zipfile! Would need to unpack it first.
Prob easier to just load the bundle , have the script search al the details, edit the *.gtxml and reload the title


Salvatore  
#250 Posted : Tuesday, May 24, 2022 10:17:26 PM(UTC)
Salvatore

Rank: Advanced Member

Groups: Registered
Joined: 11/15/2021(UTC)
Posts: 72
Italy

Thanks: 8 times
Was thanked: 9 time(s) in 7 post(s)
Hi guys, maybe this script can be useful for some of you

This script generate a Snapshot (Image) of the current active Input and add it to a new input
Code:
'this script generate a Snapshot (Image) of the current active Input and add it to a new input
'the Image is saved as a .png-file in the vmix preset folder named "preset-name"_"Timestamp"


'-- load the current API state
dim xml as string = API.XML()
dim x as new system.xml.xmldocument
x.loadxml(xml)

dim Snapshotinput as string = (x.SelectSingleNode("//active").InnerText)

dim presetFile as string = (x.SelectSingleNode("/vmix/preset").InnerText)
Dim presetFile_leftPart As String = presetFile.Split(".")(0)
dim File_time as string = Double.Parse(DateTime.Now.ToString("HHmmss"))

Dim presetFile_name As String = presetFile_leftPart + "_" + File_time + ".png"

API.Function("SnapshotInput",Input:=Snapshotinput  ,Value:= presetFile_name)
  sleep (2000)
API.Function("AddInput",Value:="Image|"& presetFile_name)



This script generate a Snapshot (Image) of the current preview Input and add it to a new input
Code:
'this script generate a Snapshot (Image) of the current preview Input and add it to a new input
'the Image is saved as a .png-file in the vmix preset folder named "preset-name"_"Timestamp"


'-- load the current API state
dim xml as string = API.XML()
dim x as new system.xml.xmldocument
x.loadxml(xml)

dim Snapshotinput as string = (x.SelectSingleNode("//preview").InnerText)

dim presetFile as string = (x.SelectSingleNode("/vmix/preset").InnerText)
Dim presetFile_leftPart As String = presetFile.Split(".")(0)
dim File_time as string = Double.Parse(DateTime.Now.ToString("HHmmss"))

Dim presetFile_name As String = presetFile_leftPart + "_" + File_time + ".png"

API.Function("SnapshotInput",Input:=Snapshotinput  ,Value:= presetFile_name)
  sleep (2000)
API.Function("AddInput",Value:="Image|"& presetFile_name)
thanks 2 users thanked Salvatore for this useful post.
doggy on 5/24/2022(UTC), studiodelta on 12/11/2022(UTC)
Salvatore  
#251 Posted : Tuesday, May 24, 2022 10:40:44 PM(UTC)
Salvatore

Rank: Advanced Member

Groups: Registered
Joined: 11/15/2021(UTC)
Posts: 72
Italy

Thanks: 8 times
Was thanked: 9 time(s) in 7 post(s)
hi guys (hi doggy),

is there a way to generate an input box query in vmix

Code:

dim InputBox as String = ""
API.Function("InputBox","Please enter your name","Name", "Text")
or somthing like this:
API.Function("InputBoxquery","if you want the script to do this, press THIS, if you want the script to do that, press THAT")


based on this VB script:

Code:

dim Title as string ="" 
dim Message as string ="" 
dim MyValue as string ="" 



'Dim Message, Title, Default, MyValue
Message = "Enter a value between 1 and 3"    ' Set prompt.
Title = "InputBox Demo"    ' Set title.
'Default = "1"    ' Set default.
' Display message, title, and default value.
MyValue = InputBox(Message, Title, Default)

' Use Helpfile and context. The Help button is added automatically.
MyValue = InputBox(Message, Title, , , , "DEMO.HLP", 10)

' Display dialog box at position 100, 100.
MyValue = InputBox(Message, Title, Default, 100, 100)


'$trans_no = [Microsoft.VisualBasic.Interaction]::InputBox("Please enter the number of seconds/iterations to hold the title", "Number", $trans_no)



and based on this VB script
Code:

Dim sInput as string =""
sInput = InputBox("Enter your name")
MsgBox "You entered:" & sInput
doggy  
#252 Posted : Tuesday, May 24, 2022 11:38:57 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: Salvatore Go to Quoted Post
hi guys (hi doggy),

is there a way to generate an input box query in vmix

No , you can not

alternativly one can use a title as your input box and let the vMix script read that data
or
make an external compiled form and send the wanted commands with httprequests to vMix
Salvatore  
#253 Posted : Tuesday, May 24, 2022 11:51:40 PM(UTC)
Salvatore

Rank: Advanced Member

Groups: Registered
Joined: 11/15/2021(UTC)
Posts: 72
Italy

Thanks: 8 times
Was thanked: 9 time(s) in 7 post(s)
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: Salvatore Go to Quoted Post
is there a way to generate an input box query in vmix

No , you can not


Is this a vMix cause?
Does it make sense to start an Feature Request?
doggy  
#254 Posted : Wednesday, May 25, 2022 1:24:53 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: Salvatore Go to Quoted Post

Is this a vMix cause?
Does it make sense to start an Feature Request?


No , vmix scripting has no way of creating form type controls

will not repeat the 2 options given before
kunjashi  
#255 Posted : Friday, June 3, 2022 1:31:13 AM(UTC)
kunjashi

Rank: Newbie

Groups: Registered
Joined: 6/3/2022(UTC)
Posts: 1
Ukraine
Location: Kyiv

Hello. I want to ask if it's possible to get access to Dropped Frames value in Statistics window? I want to make script that can switch cannels depending on dropped frames amount. If there is any way please tell me in which direction i should look. Thanks.
gpdipalmerahtimur  
#256 Posted : Saturday, June 4, 2022 2:33:12 AM(UTC)
gpdipalmerahtimur

Rank: Advanced Member

Groups: Registered
Joined: 6/5/2020(UTC)
Posts: 91
Indonesia
Location: Jakarta

Thanks: 17 times
Was thanked: 5 time(s) in 3 post(s)
Hi,

Is it possible to Display Data Sources Manager via Script?

Screenshot 2022-06-03 233343.png (42kb) downloaded 1 time(s).
doggy  
#257 Posted : Saturday, June 4, 2022 2:54:18 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: gpdipalmerahtimur Go to Quoted Post
Hi,

Is it possible to Display Data Sources Manager via Script?



Why ?
Is their a shortcutcommand/function that allows you to do that ?
What is wrong with clicking on the hamburger, select and leave that window open ?
shawntempesta  
#258 Posted : Monday, June 6, 2022 12:02:28 PM(UTC)
shawntempesta

Rank: Advanced Member

Groups: Registered
Joined: 7/15/2018(UTC)
Posts: 109
United States
Location: Las Vegas, NV

Thanks: 14 times
Was thanked: 8 time(s) in 7 post(s)
Curious if scripting could limit the amount of stories an RSS headline loop will show? Trying to only loop the first 10 or so RSS titles on a ticker... And while I'm still trying to grasp scripting I'm curious if it could even be done.
doggy  
#259 Posted : Monday, June 6, 2022 5:30:36 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: shawntempesta Go to Quoted Post
Curious if scripting could limit the amount of stories an RSS headline loop will show? Trying to only loop the first 10 or so RSS titles on a ticker... And while I'm still trying to grasp scripting I'm curious if it could even be done.


The logic:
Quote:
do while true
for x= 1 to 10
DatasourceSelectRow name,x
sleep(delaytime)
next
Loop


exact syntaxes can be found in this post
kolorasta  
#260 Posted : Sunday, June 12, 2022 10:14:01 AM(UTC)
kolorasta

Rank: Newbie

Groups: Registered
Joined: 4/20/2022(UTC)
Posts: 4
Argentina
Location: Viale

Hi. How can I change the source of an Image Input... ?

For example, I have an input with the image somefile.png and I want to change it to somefile2.png via api

Which function should I use? i can't find it.

sorry for my english
Users browsing this topic
Guest (4)
26 Pages«<1112131415>»
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.