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
Scotty71344  
#1 Posted : Tuesday, November 30, 2021 6:34:53 PM(UTC)
Scotty71344

Rank: Newbie

Groups: Registered
Joined: 6/15/2019(UTC)
Posts: 6
Germany
Location: Frankfurt

Hi everyone,

after watching Heaths youtube video about scripting I wantedt to try it by myself.

I had made a american football scoreboard with GT Title Designer before the season here in Germany and it works great with shortcuts and streamdeck.

There are around 120 shortcuts and it's a little confusing to maintenance it.

It is really helpful to reduce the shortcuts from 8 to 1 using websripting.

My Problem is now that with the function SetText the script is not doing what it should.

In Heats example "Function=SetText&Input=TitleHeath&SelectedName=Headline.text&Value=Majestics Waterfall" it works as it should.
In my case the script doesn´nt find the field "Headline.text" with the parameter "SelectetName", if I use the parameter "SelectedTitle" he finds it.
But the next time I want to use the parameter "SelectedName" or "SelectedTitle" he didn't find the answear and didn't change the text.

Here my Script:

Function=SetText&Input=scoreboard&SelectedTitle=Scoretext.text&Value=TOUCHDOWN
Function=SetImageVisibleOn&Input=scoreboard&SelectedName=ScoreBG.Source
Function=SetTextVisibleOn&Input=scoreboard&SelectedName=Scoretext.Text
Function=SetImageVisibleOn&Input=scoreboard&SelectedName=Heim_Logo_Score.Source
Sleep 7000
Function=SetImageVisibleOff&Input=scoreboard&SelectedName=ScoreBG.Source
Function=SetTextVisibleOff&Input=scoreboard&SelectedName=Scoretext.Text
Function=SetImageVisibleOff&Input=scoreboard&SelectedName=Heim_Logo_Score.Source
Function=SetText&Input=scoreboard&SelectedName=heim.text&Value=%2B%3D6

Has anyone a clue what is wrong?

Thanks for your help!
doggy  
#2 Posted : Tuesday, November 30, 2021 7:24:37 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 283 times
Was thanked: 920 time(s) in 759 post(s)
Quote:
There are around 120 shortcuts and it's a little confusing to maintenance it.

Really need to use scripting ;-)


Might be helpful to know the details of the title used ; its full name in the input, the exact text and image field names (screenshot would help) etc

Check for spaces or capital letters in both title and script details and correct function use

Code:
for starters
Function=SetText&Input=scoreboard&SelectedTitle=Scoretext.text&Value=TOUCHDOWN
should at least be 
Function=SetText&Input=scoreboard&SelectedName=Scoretext.Text&Value=TOUCHDOWN





Have you checked https://www.vmix.com/hel...utFunctionReference.html

and

https://forums.vmix.com/...86-Scripting-for-Dummies
? for more learning
Scotty71344  
#3 Posted : Tuesday, November 30, 2021 7:47:47 PM(UTC)
Scotty71344

Rank: Newbie

Groups: Registered
Joined: 6/15/2019(UTC)
Posts: 6
Germany
Location: Frankfurt

I think your help was succesful, it was the capital T in Heim.Text and Scoreboard.Text.

Thanks a lot!
Users browsing this topic
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.