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
ginesromero  
#1 Posted : Sunday, March 13, 2022 11:20:19 PM(UTC)
ginesromero

Rank: Member

Groups: Registered
Joined: 4/27/2021(UTC)
Posts: 17
Spain
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!
doggy  
#2 Posted : Sunday, March 13, 2022 11:53:53 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,218
Belgium
Location: Belgium

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: ginesromero Go to Quoted Post
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" ?


thanks 1 user thanked doggy for this useful post.
ginesromero on 3/14/2022(UTC)
ginesromero  
#3 Posted : Monday, March 14, 2022 12:10:02 AM(UTC)
ginesromero

Rank: Member

Groups: Registered
Joined: 4/27/2021(UTC)
Posts: 17
Spain
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.
doggy  
#4 Posted : Monday, March 14, 2022 12:49:17 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,218
Belgium
Location: Belgium

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: ginesromero Go to Quoted Post
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


thanks 1 user thanked doggy for this useful post.
ginesromero on 3/14/2022(UTC)
ginesromero  
#5 Posted : Monday, March 14, 2022 3:45:21 AM(UTC)
ginesromero

Rank: Member

Groups: Registered
Joined: 4/27/2021(UTC)
Posts: 17
Spain
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
doggy  
#6 Posted : Monday, March 14, 2022 3:59:45 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,218
Belgium
Location: Belgium

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: ginesromero Go to Quoted Post
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)
thanks 1 user thanked doggy for this useful post.
ginesromero on 3/14/2022(UTC)
ginesromero  
#7 Posted : Monday, March 14, 2022 4:33:58 AM(UTC)
ginesromero

Rank: Member

Groups: Registered
Joined: 4/27/2021(UTC)
Posts: 17
Spain
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
doggy  
#8 Posted : Monday, March 14, 2022 4:46:24 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,218
Belgium
Location: Belgium

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: ginesromero Go to Quoted Post
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 )


ginesromero  
#9 Posted : Monday, March 14, 2022 4:57:40 AM(UTC)
ginesromero

Rank: Member

Groups: Registered
Joined: 4/27/2021(UTC)
Posts: 17
Spain
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
Papo  
#10 Posted : Tuesday, March 15, 2022 7:37:30 AM(UTC)
Papo

Rank: Advanced Member

Groups: Registered
Joined: 6/16/2020(UTC)
Posts: 77
Peru

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
thanks 1 user thanked Papo for this useful post.
ginesromero on 3/15/2022(UTC)
ginesromero  
#11 Posted : Tuesday, March 15, 2022 5:31:56 PM(UTC)
ginesromero

Rank: Member

Groups: Registered
Joined: 4/27/2021(UTC)
Posts: 17
Spain
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. 😀
doggy  
#12 Posted : Tuesday, March 15, 2022 8:33:31 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,218
Belgium
Location: Belgium

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
... search..it's right there (at the bottom)

https://www.vmix.com/knowledgebase/article.aspx/66/how-to-control-scoreboards-in-vmix-with-the-keyboard

Code:
Function=SetText&Input=NAMEOFTHEINPUT&SelectedName=HomeScore&Value=%2B%3D1

alternativly 

API.Function("SetText",Input:="NAMEOFTHEINPUT",SelectedName:="HomeScore",value:= "+=1" )


and more in the forum ! : https://forums.vmix.com/posts/m13222-Shortcut-Questions#post13222
thanks 1 user thanked doggy for this useful post.
ginesromero on 3/15/2022(UTC)
Users browsing this topic
Guest
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.