Rank: Member
Groups: Registered
Joined: 4/27/2021(UTC) Posts: 17 Location: Valencia Thanks: 10 times Was thanked: 3 time(s) in 3 post(s)
|
hi vmixers! I have a question that I can't resolve and maybe you can help me.
I have 2 shortcuts for the sport score title: - one adds a point each time. (The shortcut has a value:+=1 Each time that I press the key adds a point to the marker) - the other shortcut is to activate a graphic that indicates the setpoint.
I'm thinking about using script to join the two in an only one shortcut. But I can't get the script to add bridges every time, is it possible?
The script that I'm using is:
Function=SetText&Input=NAMEOFTHEINPUT&SelectedName=HomeScore&Value=1
I have tried to add +=1 the same value of the shortcut but it does not work. what am I doing wrong? or is it just not possible?
Thanks in advance!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: ginesromero hi vmixers! I have a question that I can't resolve and maybe you can help me.
I have 2 shortcuts for the sport score title: - one adds a point each time. (The shortcut has a value:+=1 Each time that I press the key adds a point to the marker) - the other shortcut is to activate a graphic that indicates the setpoint.
I'm thinking about using script to join the two in an only one shortcut. But I can't get the script to add bridges every time, is it possible?
The script that I'm using is:
Function=SetText&Input=NAMEOFTHEINPUT&SelectedName=HomeScore&Value=1
I have tried to add +=1 the same value of the shortcut but it does not work. what am I doing wrong? or is it just not possible?
Thanks in advance! Just have the 2 shortcuts under the same key otherwise i do not understand what you are trying to say : activate a graphics while doing a settext function? is the inout really called "NAMEOFTHEINPUT" ?
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Member
Groups: Registered
Joined: 4/27/2021(UTC) Posts: 17 Location: Valencia Thanks: 10 times Was thanked: 3 time(s) in 3 post(s)
|
Hi Doggy,
Thank you for responding quickly.
I explain better. Imagine two Scores, local and visitor
At the moment that the local team do a point, it adds a point and a small Circle(in on the multilayer) is activated indicating that it has the set/possession of the game At the moment that the other team adds a point and get the set(and the drawing changes to it)
NAMEOFTHEINPUT, No!😅 , the input name is not this! It was only to not complicate the explanation.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: ginesromero Hi Doggy,
Thank you for responding quickly.
I explain better. Imagine two Scores, local and visitor
At the moment that the local team do a point, it adds a point and a small Circle(in on the multilayer) is activated indicating that it has the set/possession of the game At the moment that the other team adds a point and get the set(and the drawing changes to it)
you havent mentioned if your activate graphics is workign with your shortcut and basically are using the function wrongly in the script you are trying would advice to use .net scripting and using and api call when doing multiple function calls in a script ( see "scripting for dummies" post ) on the other hand changing a graphics based on a value needs some scripting to test and such to check scoring rules then again changing a graphics part of a title isnt that hard : see
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Member
Groups: Registered
Joined: 4/27/2021(UTC) Posts: 17 Location: Valencia Thanks: 10 times Was thanked: 3 time(s) in 3 post(s)
|
hi Doggy,
I will check what you tell me. My idea was to make something easy to graphic operator, using 2 key/shortcut at a time out of 4 key/shortcut but maybe it's not worth spending so much time with the script.
thanks for trying to help
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: ginesromero hi Doggy,
I will check what you tell me. My idea was to make something easy to graphic operator, using 2 key/shortcut at a time out of 4 key/shortcut but maybe it's not worth spending so much time with the script.
thanks for trying to help
One can only do so much based on the little information given (and a bit still confusing added with every post)
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Member
Groups: Registered
Joined: 4/27/2021(UTC) Posts: 17 Location: Valencia Thanks: 10 times Was thanked: 3 time(s) in 3 post(s)
|
I am very thankfull for your help.
I was just learning about how scripts works and I tried to apply them to one of my works, that's why I've told it little by little but it has complicated it...😅
We can focus on the first syntax leaving aside other problems.
If I want to add a point each time, as I do with the shortcut (Value +=1), it is possible to do it with a script. Function=SetText&Input=NAMEOFTHEINPUT&SelectedName=HomeScore&Value=1 Just out of curiosity
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: ginesromero that's why I've told it little by little but it has complicated it...😅
No, doing that IS making things more complicated to get a proper answer ! ( and waisitng peoples time) Quote: If I want to add a point each time, as I do with the shortcut (Value +=1), it is possible to do it with a script. Function=SetText&Input=NAMEOFTHEINPUT&SelectedName=HomeScore&Value=1 Just out of curiosity
Finally a question to the point !! yes it is possible. Any shortcut function can be used within a script (need to choose what type of script for the proper syntax) Did you follow my sugestion from before ? ( see "scripting for dummies" post )
|
|
|
|
Rank: Member
Groups: Registered
Joined: 4/27/2021(UTC) Posts: 17 Location: Valencia Thanks: 10 times Was thanked: 3 time(s) in 3 post(s)
|
I don't mean to waste anyone's time. Before asking I checked the forum but I didn't find anything similar. I will review the article you mention. Thanks again for answering and for your time
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/16/2020(UTC) Posts: 77 Thanks: 8 times Was thanked: 2 time(s) in 2 post(s)
|
Gines
input.find("Scoreboard 14- VBall.gtzip").text("Home Score.Text") = cint(input.find("Scoreboard 14- VBall.gtzip").text("Home Score.Text")) + 1
|
1 user thanked Papo for this useful post.
|
|
|
Rank: Member
Groups: Registered
Joined: 4/27/2021(UTC) Posts: 17 Location: Valencia Thanks: 10 times Was thanked: 3 time(s) in 3 post(s)
|
Hi Papo,
Thanks for sharing your knowledge. Very useful and instructive it has helped me a lot. 😀
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
|
1 user thanked doggy for this useful post.
|
|
|
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