vMix Forums
»
General
»
GT
»
Script for some inputs
Rank: Member
Groups: Registered
Joined: 4/19/2023(UTC) Posts: 14 Location: Cortina
|
Hello I tried to find if the topic was already been discussed, but I didn't find anything.. maybe I'm not good in reseasch.... I'm starting to understand how scripts work with VMix. I was trying to understand if the thing I'd like to do is possible with scripts or in a different way.
Of course I take datas for my titles from a data source. The title I'm working in is a goal scorer graphic which shows the name of the player who actually scored the goal and the names of who did the assist. In case the filed of the assist is empty because the goal is Unassisted, I'd like to write Unassisted in the graphic. Is there a way to do that with scripts or in a different way?
|
|
|
|
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: barkley Hello I tried to find if the topic was already been discussed, but I didn't find anything.. maybe I'm not good in reseasch.... I'm starting to understand how scripts work with VMix. I was trying to understand if the thing I'd like to do is possible with scripts or in a different way.
Of course I take datas for my titles from a data source. The title I'm working in is a goal scorer graphic which shows the name of the player who actually scored the goal and the names of who did the assist. In case the filed of the assist is empty because the goal is Unassisted, I'd like to write Unassisted in the graphic. Is there a way to do that with scripts or in a different way? script reads content of assisted field, if empty settext to "Unassisted". based on that one can let the scrptdo other things like hide the assisted graphics)
|
|
|
|
Rank: Member
Groups: Registered
Joined: 4/19/2023(UTC) Posts: 14 Location: Cortina
|
Originally Posted by: doggy Originally Posted by: barkley Hello I tried to find if the topic was already been discussed, but I didn't find anything.. maybe I'm not good in reseasch.... I'm starting to understand how scripts work with VMix. I was trying to understand if the thing I'd like to do is possible with scripts or in a different way.
Of course I take datas for my titles from a data source. The title I'm working in is a goal scorer graphic which shows the name of the player who actually scored the goal and the names of who did the assist. In case the filed of the assist is empty because the goal is Unassisted, I'd like to write Unassisted in the graphic. Is there a way to do that with scripts or in a different way? script reads content of assisted field, if empty settext to "Unassisted". based on that one can let the scrptdo other things like hide the assisted graphics) It is exactly what I'd need but I have no idea on how to set this text if the field is empty.. c an you give me some advices on how to do that? sorry but I'm learning.. I'm a newbie
|
|
|
|
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: barkley Originally Posted by: doggy Originally Posted by: barkley Hello I tried to find if the topic was already been discussed, but I didn't find anything.. maybe I'm not good in reseasch.... I'm starting to understand how scripts work with VMix. I was trying to understand if the thing I'd like to do is possible with scripts or in a different way.
Of course I take datas for my titles from a data source. The title I'm working in is a goal scorer graphic which shows the name of the player who actually scored the goal and the names of who did the assist. In case the filed of the assist is empty because the goal is Unassisted, I'd like to write Unassisted in the graphic. Is there a way to do that with scripts or in a different way? script reads content of assisted field, if empty settext to "Unassisted". based on that one can let the scrptdo other things like hide the assisted graphics) It is exactly what I'd need but I have no idea on how to set this text if the field is empty.. c an you give me some advices on how to do that? sorry but I'm learning.. I'm a newbie There is a big post in this forum "scripting for dummies" that will help you on the way (starnge you didnt find it ;-) )! Code:do while true
dim TextCheck as string = Input.Find("Title 0- The Classic Blue.gtzip").Text("Description.Text" )
if TextCheck = ""
API.Function("SetText",Input:="Title 0- The Classic Blue.gtzip" ,SelectedName:="Description.Text",Value:="is empty")
end if
loop
|
|
|
|
Rank: Member
Groups: Registered
Joined: 4/19/2023(UTC) Posts: 14 Location: Cortina
|
Originally Posted by: doggy Originally Posted by: barkley Originally Posted by: doggy Originally Posted by: barkley Hello I tried to find if the topic was already been discussed, but I didn't find anything.. maybe I'm not good in reseasch.... I'm starting to understand how scripts work with VMix. I was trying to understand if the thing I'd like to do is possible with scripts or in a different way.
Of course I take datas for my titles from a data source. The title I'm working in is a goal scorer graphic which shows the name of the player who actually scored the goal and the names of who did the assist. In case the filed of the assist is empty because the goal is Unassisted, I'd like to write Unassisted in the graphic. Is there a way to do that with scripts or in a different way? script reads content of assisted field, if empty settext to "Unassisted". based on that one can let the scrptdo other things like hide the assisted graphics) It is exactly what I'd need but I have no idea on how to set this text if the field is empty.. c an you give me some advices on how to do that? sorry but I'm learning.. I'm a newbie There is a big post in this forum "scripting for dummies" that will help you on the way (starnge you didnt find it ;-) )! Code:do while true
dim TextCheck as string = Input.Find("Title 0- The Classic Blue.gtzip").Text("Description.Text" )
if TextCheck = ""
API.Function("SetText",Input:="Title 0- The Classic Blue.gtzip" ,SelectedName:="Description.Text",Value:="is empty")
end if
loop
thank you.. i checked the scripting for dummies but I didn't see this one..
|
|
|
|
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: barkley
thank you.. i checked the scripting for dummies but I didn't see this one..
No but all the functions used here are used in some form or another in exampl scripts , cant expect to have a script ready for any situation. They are examples, tips, tricks to learn from !
|
|
|
|
Rank: Member
Groups: Registered
Joined: 4/19/2023(UTC) Posts: 14 Location: Cortina
|
Originally Posted by: doggy Originally Posted by: barkley
thank you.. i checked the scripting for dummies but I didn't see this one..
No but all the functions used here are used in some form or another in exampl scripts , cant expect to have a script ready for any situation. They are examples, tips, tricks to learn from ! of course, I mean I didn't find the example I needed. Now I'm trying and the challenge is to see what I'm doing wrong )))
|
|
|
|
vMix Forums
»
General
»
GT
»
Script for some inputs
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