vMix Forums
»
General
»
General Discussion
»
Script to read data sources
Rank: Newbie
Groups: Registered
Joined: 12/26/2019(UTC) Posts: 5 Thanks: 1 times
|
I stream racing and have a csv data source that is constantly replaced. In this csv file there is a cell that varies from "Racing" to "Red light" etc. I'm hoping there is a way to use a script or another option for vmix to read the word and trigger an image to appear as an overlay dependant of which word is shown. Thanks
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/23/2022(UTC) Posts: 99 Location: Milton Keynes Thanks: 13 times Was thanked: 6 time(s) in 6 post(s)
|
Originally Posted by: mortonc1 I stream racing and have a csv data source that is constantly replaced. In this csv file there is a cell that varies from "Racing" to "Red light" etc. I'm hoping there is a way to use a script or another option for vmix to read the word and trigger an image to appear as an overlay dependant of which word is shown. Thanks As far as I know, scripts can't read data sources directly. However they can read title inputs. So in your case, you can have that status (Racing/Red Light) added as a title inputs linked to the relevant row and column in the data source. Then have your script read the content of that input.
|
1 user thanked spinfold for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 12/26/2019(UTC) Posts: 5 Thanks: 1 times
|
Awesome! I could make that work. How would you script that?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,243 Location: Belgium Thanks: 294 times Was thanked: 960 time(s) in 794 post(s)
|
Originally Posted by: mortonc1 Awesome! I could make that work. How would you script that? Plenty of examples in the "scripting for dummies" post
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/24/2021(UTC) Posts: 542 Location: athens Thanks: 130 times Was thanked: 74 time(s) in 70 post(s)
|
Originally Posted by: mortonc1 Awesome! I could make that work. How would you script that? A simple script for this Code:
Do While True
dim race as string
race = Input.Find("Text Middle Centre Left Right Sharp.gtzip").Text("Message.Text")
if race = "Racing" then
API.Function("OverlayInput3In", Input:="3")
else if race = "Red light" then
API.Function("OverlayInput3Out")
end if
Loop
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Script to read data sources
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