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
Luis70  
#1 Posted : Wednesday, June 11, 2025 2:18:47 PM(UTC)
Luis70

Rank: Advanced Member

Groups: Registered
Joined: 11/27/2023(UTC)
Posts: 82
Grenada

Thanks: 4 times
Was thanked: 5 time(s) in 5 post(s)
Hi ... Is there a way to have a tally to work with scripts ie: when I run scripts from Panel Builder, I do not get the button to tally, it stays the same colour.


Luis just asking
dmwkr  
#2 Posted : Wednesday, June 11, 2025 8:44:24 PM(UTC)
dmwkr

Rank: Advanced Member

Groups: Registered
Joined: 2/23/2019(UTC)
Posts: 596

Thanks: 62 times
Was thanked: 139 time(s) in 126 post(s)
Originally Posted by: Luis70 Go to Quoted Post
Hi ... Is there a way to have a tally to work with scripts ie: when I run scripts from Panel Builder, I do not get the button to tally, it stays the same colour.


Luis just asking


Yes, check the latest change logs:

Quote:
4.0.62
- replaced "SetButtonColor to TitleColor" with "Set ButtonTally to TitleText" (set the text in a placeholder "Title" to true or false in order to trigger a button tally. This now allow user to program button tallies in the usual way in the PB "InfoBox" without having to assign colors in the Title's Rectangle objects). The "SetButtonColor to TitleColor" still works for now.


4.0.59
- added "Set ButtonColor to Title Color" (eg: You can use the color state of an "Rectangle" in a Title to set the color of a button in PB)


So the way to go would be to include a funtion in your script to set the text in a (hidden) title field and use this as the input of your script button, and check the "Set ButtonTally to TitleText" box.
Luis70  
#3 Posted : Thursday, June 12, 2025 2:32:26 AM(UTC)
Luis70

Rank: Advanced Member

Groups: Registered
Joined: 11/27/2023(UTC)
Posts: 82
Grenada

Thanks: 4 times
Was thanked: 5 time(s) in 5 post(s)
This is what I have: was given to me by Raugert some time last year, but I never got it to work:


Then your first line in your Script would now be :
Function=SetColor&Input=ColorPlaceholder.gtzip&Value=#FF0000&SelectedName=Color1.Fill.Color (this will change the button to Red when the script starts)

The last line in your Script would be :
Function=SetColor&Input=ColorPlaceholder.gtzip&Value=#00FF00&SelectedName=Color1.Fill.Color (this will change the button to Green when the script ends)

You can change the hex values if you want different colors...


In the PB button:
Select ColorPlaceholder.gtzip in the "Input" field
Select Color1.Fill.Color in the "SelectedName" field.
Check the "Set ButtonColor to TitleColor" box.

but was never told if I have to select anything else, or do anything else. ... I create a button in PB, and create it to start a script, but it does not tally..... where should I put the name of the script in PB ... I am using it in 'Value'

It triggers in vmix but not in panel builder
dmwkr  
#4 Posted : Thursday, June 12, 2025 5:52:39 AM(UTC)
dmwkr

Rank: Advanced Member

Groups: Registered
Joined: 2/23/2019(UTC)
Posts: 596

Thanks: 62 times
Was thanked: 139 time(s) in 126 post(s)
It works for me with PB version 4.0.59, and vMix 28.0.0.42. But the field needs to be visible in vMix Title Editor, so you have to uncheck the "Hidden" box in GT Title Designer. It doesn't seem to work if the field is hidden.
Luis70  
#5 Posted : Thursday, June 12, 2025 2:14:48 PM(UTC)
Luis70

Rank: Advanced Member

Groups: Registered
Joined: 11/27/2023(UTC)
Posts: 82
Grenada

Thanks: 4 times
Was thanked: 5 time(s) in 5 post(s)
I am using PB 4.0.62 ..... can you sed me a copy of your script
dmwkr  
#6 Posted : Thursday, June 12, 2025 3:13:52 PM(UTC)
dmwkr

Rank: Advanced Member

Groups: Registered
Joined: 2/23/2019(UTC)
Posts: 596

Thanks: 62 times
Was thanked: 139 time(s) in 126 post(s)
I‘m not at the PC right now, but I copied your script for the test. If the color changes in vMix, the script is working anyways. Can you edit the color in vMix Title Editor? For that to work you have to unhide the object, see Editing Color Objects in https://www.vmix.com/help28/Title.html. PB tally won’t work without unticking the Hidden box. And, every manual change of color will be represented in PB tally. It does not depend on a script.
Luis70  
#7 Posted : Thursday, June 12, 2025 3:27:04 PM(UTC)
Luis70

Rank: Advanced Member

Groups: Registered
Joined: 11/27/2023(UTC)
Posts: 82
Grenada

Thanks: 4 times
Was thanked: 5 time(s) in 5 post(s)
ok, will check on that
Luis70  
#8 Posted : Thursday, June 12, 2025 4:14:50 PM(UTC)
Luis70

Rank: Advanced Member

Groups: Registered
Joined: 11/27/2023(UTC)
Posts: 82
Grenada

Thanks: 4 times
Was thanked: 5 time(s) in 5 post(s)
I think I have it working now....but it only works with coloured buttons, and not with "Icon" nor "Clear" buttons.... that is why I could not get it to wrk for me ... only "Coloured Buttons" ... and for some reason, all the buttons I created work all at the same time ....they all chage colour at the same time even though they all do ot run a scriptwhen I click on any one, all change their colour
dmwkr  
#9 Posted : Thursday, June 12, 2025 7:04:28 PM(UTC)
dmwkr

Rank: Advanced Member

Groups: Registered
Joined: 2/23/2019(UTC)
Posts: 596

Thanks: 62 times
Was thanked: 139 time(s) in 126 post(s)
With this tally function, you don't really get an "automatic" tally function. You are responsible for setting it up and scripting it the right way. In your case, your are probably using the same color object in the same title for all button tallys. Add one color object per button to your title (like Color2.Fill.Color, Color3.Fill.Color and so on), and link one button to one object. You can use one title.
Luis70  
#10 Posted : Friday, June 13, 2025 12:58:45 AM(UTC)
Luis70

Rank: Advanced Member

Groups: Registered
Joined: 11/27/2023(UTC)
Posts: 82
Grenada

Thanks: 4 times
Was thanked: 5 time(s) in 5 post(s)
Not sure I get what you are tellig me, but here is a link to what I have:


You need to add the following lines to the beginning and end of your script. This will set the color of a rectangle in the Title Input you created. The color of the Rectangle in that Title Input is what PB uses to change the color of the tally. The "Value" is the hex value of the color you want. In the first line in my example, when the scriopt starts the "Value" color is set to RED (#FF0000). When the script is finished the color is set to (#00FF00) GREEN. Make sure to add the name of the Rectangle of the Title input in the "Selected Name". This is the same "Input" and "SelectedName" that you used in the button in PB


Function=SetColor&Input=Test color box.gtzip&Value=#FF0000&SelectedName=Rectangle1.Fill.Color
Function=SetVolumeFade&Input=ORGAN MUSIC&Value=0,5000
Function=SetVolumeFade&Input=CAM 1&Value=0,5000
Function=SetVolumeFade&Input=CAM 2&Value=0,5000
Function=SetVolumeFade&Input=CAM 3&Value=0,5000
Function=SetVolumeFade&Input=CAM 4&Value=0,5000
Function=SetVolumeFade&Input=Audio Digital Audio Interface usb 3&Value=0,5000
Function=SetVolumeFade&Input=PLAYER 1&Value=0,5000
Function=SetVolumeFade&Input=PLAYER 2&Value=0,5000
Function=SetVolumeFade&Input=PLAYER 3&Value=0,5000
Function=SetVolumeFade&Input=BACKGROUND MUSIC&Value=0,5000
Function=SetVolumeFade&Input=Audio Microphone&Value=0,5000
Function=Fade&Input=BLACK&Duration=4000&Mix=0
SLEEP 7000
Function=Fause&Input=PLAYER 1&Duration=7000&Mix=0
Function=Fause&Input=PLAYER 2&Duration=7000&Mix=0
Function=Fause&Input=PLAYER 3&Duration=7000&Mix=0
Function=AudioOff&Input=cam 1&Duration=7000&Mix=0
Function=AudioOff&Input=cam 2&Duration=7000&Mix=0
Function=AudioOff&Input=cam 3&Duration=7000&Mix=0
Function=AudioOff&Input=cam 4&Duration=7000&Mix=0
Function=AudioOff&Input=PLAYER 1&Duration=7000&Mix=0
Function=AudioOff&Input=PLAYER 2&Duration=7000&Mix=0
Function=AudioOff&Input=PLAYER 3&Duration=7000&Mix=0
Function=Pause&Input=BACKGROUND MUSIC&Duration=7000&Mix=0
Function=AudioOff&Input=BACKGROUND MUSIC&Duration=7000&Mix=0
Function=AudioOff&Input=PLAYER &Duration=7000&Mix=0
Function=SetColor&Input=Test color box.gtzip&Value=#00FF00&SelectedName=Rectangle1.Fill.Color

*****************************************************************************************
This is the link to what was sent to me:

https://www.dropbox.com/...azkqkjgf84k2op1&dl=1



Then your first line in your Script would now be :
Function=SetColor&Input=ColorPlaceholder.gtzip&Value=#FF0000&SelectedName=Color1.Fill.Color (this will change the button to Red when the script starts)

The last line in your Script would be :
Function=SetColor&Input=ColorPlaceholder.gtzip&Value=#00FF00&SelectedName=Color1.Fill.Color (this will change the button to Green when the script ends)

You can change the hex values if you want different colors...


In the PB button:
Select ColorPlaceholder.gtzip in the "Input" field
Select Color1.Fill.Color in the "SelectedName" field.
Check the "Set ButtonColor to TitleColor" box

dmwkr  
#11 Posted : Friday, June 13, 2025 2:47:21 AM(UTC)
dmwkr

Rank: Advanced Member

Groups: Registered
Joined: 2/23/2019(UTC)
Posts: 596

Thanks: 62 times
Was thanked: 139 time(s) in 126 post(s)
The GT title from the Dropbox link is different from the one you are using in your script. I'll explain with the title from the Dropbox.

In GT title, the fields have to have the "Hidden" box unchecked.

gt.PNG (128kb) downloaded 18 time(s).

That way, they will appear in the Color tab in the vMix Title Editor.

titleeditor.PNG (24kb) downloaded 18 time(s).

In Panel Builder, you select the input and the Selected Index. If I understand you correctly, you are running a script from the button. So in the value field, you set the name of the script. That value is only to choose the right script from vMix, it doesn't do anything to the tally functionality. My random name is Script5.

pb.PNG (30kb) downloaded 18 time(s).

To test it, you can manually change the color in the Title Editor. In PB the tally color of the button should change accordingly.

For every button and script, you need to change the SelectedName. In the PB screenshot I chose Color7.Fill.Color, so the script should be:

Code:
Function=SetColor&Input=ColorPlaceholder.gtzip&Value=#FF0000&SelectedName=Color7.Fill.Color
Function=SetVolumeFade&Input=ORGAN MUSIC&Value=0,5000
'...
SLEEP 7000
'...
Function=SetColor&Input=ColorPlaceholder.gtzip&Value=#00FF00&SelectedName=Color7.Fill.Color


Does that work for you?
Luis70  
#12 Posted : Friday, June 13, 2025 3:14:34 AM(UTC)
Luis70

Rank: Advanced Member

Groups: Registered
Joined: 11/27/2023(UTC)
Posts: 82
Grenada

Thanks: 4 times
Was thanked: 5 time(s) in 5 post(s)
I am stil using vMix 26, so I have GT 4.0.0.3, so that function is not available to me where I can have that 'Hidden' option, but it seems to work to a point. ... however for some reason it does not work on every script as it should.....in other words it does not always return to the colour I set for the 'scriptstop' command. .... it stays on the tally colour after the script stops on some cases... Ihave it to go to #C0C0C0 whicch is light grey....it does that for some scripts but not alll....

So, to stop all the buttons from reacting to one command then I will have to change that in the script by selecting a different Colour for the 'Colour.x Fill'


UPDATE:

SUCCESS: I have everything working as I thik it should... Thanks for you help @ dmwkr


luis70 says Thanks
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.