Rank: Advanced Member
Groups: Registered
Joined: 12/24/2021(UTC) Posts: 482 Location: athens Thanks: 120 times Was thanked: 68 time(s) in 64 post(s)
|
Originally Posted by: doggy
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.
|
|
|
|
Rank: Member
Groups: Registered
Joined: 8/2/2021(UTC) Posts: 12 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!
|
|
|
|
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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,202 Location: Belgium Thanks: 291 times Was thanked: 954 time(s) in 789 post(s)
|
Originally Posted by: QuintvK 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 ;-) )
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,202 Location: Belgium Thanks: 291 times Was thanked: 954 time(s) in 789 post(s)
|
Originally Posted by: Joeboe 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
|
|
|
|
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
|
|
|
|
Rank: Member
Groups: Registered
Joined: 8/2/2021(UTC) Posts: 12 Location: Utrecht Thanks: 2 times Was thanked: 4 time(s) in 3 post(s)
|
Originally Posted by: doggy Originally Posted by: QuintvK 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?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,202 Location: Belgium Thanks: 291 times Was thanked: 954 time(s) in 789 post(s)
|
Originally Posted by: Joeboe 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,202 Location: Belgium Thanks: 291 times Was thanked: 954 time(s) in 789 post(s)
|
Originally Posted by: QuintvK Originally Posted by: doggy Originally Posted by: QuintvK 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/15/2021(UTC) Posts: 72 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)
|
2 users thanked Salvatore for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/15/2021(UTC) Posts: 72 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,202 Location: Belgium Thanks: 291 times Was thanked: 954 time(s) in 789 post(s)
|
Originally Posted by: Salvatore 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/15/2021(UTC) Posts: 72 Thanks: 8 times Was thanked: 9 time(s) in 7 post(s)
|
Originally Posted by: doggy Originally Posted by: Salvatore 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?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,202 Location: Belgium Thanks: 291 times Was thanked: 954 time(s) in 789 post(s)
|
Originally Posted by: Salvatore 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
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 6/3/2022(UTC) Posts: 1 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/5/2020(UTC) Posts: 91 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).
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,202 Location: Belgium Thanks: 291 times Was thanked: 954 time(s) in 789 post(s)
|
Originally Posted by: gpdipalmerahtimur 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 ?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/15/2018(UTC) Posts: 109 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,202 Location: Belgium Thanks: 291 times Was thanked: 954 time(s) in 789 post(s)
|
Originally Posted by: shawntempesta 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
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 4/20/2022(UTC) Posts: 4 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
|
|
|
|
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