logo

Live Production Software Forums


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

Notification

Icon
Error

Options
Go to last post Go to first unread
mortonc1  
#1 Posted : Saturday, December 7, 2024 6:50:56 PM(UTC)
mortonc1

Rank: Newbie

Groups: Registered
Joined: 12/26/2019(UTC)
Posts: 5
New Zealand

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
spinfold  
#2 Posted : Saturday, December 7, 2024 7:47:05 PM(UTC)
spinfold

Rank: Advanced Member

Groups: Registered
Joined: 1/23/2022(UTC)
Posts: 99
United Kingdom
Location: Milton Keynes

Thanks: 13 times
Was thanked: 6 time(s) in 6 post(s)
Originally Posted by: mortonc1 Go to Quoted Post
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.
thanks 1 user thanked spinfold for this useful post.
mortonc1 on 12/7/2024(UTC)
mortonc1  
#3 Posted : Saturday, December 7, 2024 7:54:03 PM(UTC)
mortonc1

Rank: Newbie

Groups: Registered
Joined: 12/26/2019(UTC)
Posts: 5
New Zealand

Thanks: 1 times
Awesome! I could make that work. How would you script that?
doggy  
#4 Posted : Saturday, December 7, 2024 8:51:30 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: mortonc1 Go to Quoted Post
Awesome! I could make that work. How would you script that?


Plenty of examples in the "scripting for dummies" post
nikosman88  
#5 Posted : Saturday, December 7, 2024 10:51:14 PM(UTC)
nikosman88

Rank: Advanced Member

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

Thanks: 130 times
Was thanked: 74 time(s) in 70 post(s)
Originally Posted by: mortonc1 Go to Quoted Post
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
Users browsing this topic
Guest (2)
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.