vMix Forums
»
General
»
GT
»
Rectangle color change using data
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)
|
While not directly one can change a "fake" rectangle color change using shortcuts, a script or manually just create a fake rectangle by using a TextBlock filled with ASCII character 219 Change the color using the SetTextColour with a shortcut or in the title editor color picker To automate it use a script that checks the color data in a hidden textblock or just use regular rectangles and change them in the title designer or replace images used as background ;-)
|
5 users thanked doggy for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/20/2014(UTC) Posts: 2,721 Location: Bordeaux, France Thanks: 243 times Was thanked: 794 time(s) in 589 post(s)
|
Ah ah ! That's how I dealt with yellow or red cards for sport graphics in vMix UTC. So simple !
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/2/2013(UTC) Posts: 462
Thanks: 38 times Was thanked: 39 time(s) in 35 post(s)
|
Such a stupid and great workaround! Thank you! :-D
|
|
|
|
Rank: Member
Groups: Registered
Joined: 1/27/2018(UTC) Posts: 15 Location: Bangladesh Thanks: 19 times
|
|
|
|
|
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: blue28 great, how you do this it's described in the post !
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Member
Groups: Registered
Joined: 11/14/2012(UTC) Posts: 10 Location: Los Angeles
|
That's a great method of doing that, how would I change the color of a gradient, that is bound to a text element and expands or substracts with the number of characters typed in the text field. I still think vMix should expose the color value of these items.
|
|
|
|
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: hive8 how would I change the color of a gradient, that is bound to a text element and expands or substracts with the number of characters typed in the text field. Don't push your luck LOL
|
|
|
|
Rank: Member
Groups: Registered
Joined: 11/14/2012(UTC) Posts: 10 Location: Los Angeles
|
|
|
|
|
Rank: Member
Groups: Registered
You have been a member since:: 5/27/2019(UTC) Posts: 9 Location: ni Thanks: 8 times
|
Originally Posted by: doggy While not directly one can change a "fake" rectangle color change using shortcuts, a script or manually
just create a fake rectangle by using a TextBlock filled with ASCII character 219 Change the color using the SetTextColour with a shortcut or in the title editor color picker To automate it use a script that checks the color data in a hidden textblock
or just use regular rectangles and change them in the title designer or replace images used as background ;-)
I'd like to ask you something Ask colordata1. Text how to change the color code ? thank you You can upload one colorrect.gtzip ?
|
|
|
|
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: shuizhiyu
I'd like to ask you something
Ask colordata1. Text how to change the color code ?
thank you
Right click the title editor and select another color or type it in just as one would otherwise change a color of text As for the colordata1 specifically , the content is read by a script to perform a color change function See comments in the video (YT)
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/25/2019(UTC) Posts: 303 Thanks: 17 times Was thanked: 79 time(s) in 60 post(s)
|
|
1 user thanked Peter1000 for this useful post.
|
|
|
Rank: Member
Groups: Registered
You have been a member since:: 5/27/2019(UTC) Posts: 9 Location: ni Thanks: 8 times
|
Originally Posted by: doggy Originally Posted by: shuizhiyu
I'd like to ask you something
Ask colordata1. Text how to change the color code ?
thank you
Right click the title editor and select another color or type it in just as one would otherwise change a color of text As for the colordata1 specifically , the content is read by a script to perform a color change function See comments in the video (YT) Thank you for your answer I watched the comments (YT) in the video seriously I understand a little bit, but how to write functions in scripts. Can you tell me what the code is?
|
|
|
|
Rank: Member
Groups: Registered
You have been a member since:: 5/27/2019(UTC) Posts: 9 Location: ni Thanks: 8 times
|
Originally Posted by: Peter1000 Thank you Thank you for your code But this code doesn't seem to work
|
|
|
|
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: shuizhiyu Originally Posted by: Peter1000 Thank you Thank you for your code But this code doesn't seem to work Blindly copying code is not going to work Check out the same named shortcut and it needs and compare that to that function also https://forums.vmix.com/...86-Scripting-for-Dummies
|
|
|
|
Rank: Member
Groups: Registered
You have been a member since:: 5/27/2019(UTC) Posts: 9 Location: ni Thanks: 8 times
|
Originally Posted by: doggy Originally Posted by: shuizhiyu Originally Posted by: Peter1000 Thank you Thank you for your code But this code doesn't seem to work Blindly copying code is not going to work Check out the same named shortcut and it needs and compare that to that function also https://forums.vmix.com/...86-Scripting-for-Dummies Thank you
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 2/13/2021(UTC) Posts: 4 Location: Porto Thanks: 1 times
|
Originally Posted by: doggy While not directly one can change a "fake" rectangle color change using shortcuts, a script or manually just create a fake rectangle by using a TextBlock filled with ASCII character 219 Change the color using the SetTextColour with a shortcut or in the title editor color picker To automate it use a script that checks the color data in a hidden textblock or just use regular rectangles and change them in the title designer or replace images used as background ;-) Can you please tell me how to script to get info from colordata to fill information of the rectangle? Thanks
|
|
|
|
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: ciberego Can you please tell me how to script to get info from colordata to fill information of the rectangle? Thanks
Code:dim color as string = Input.Find("Title.gtzip").Text("Colordat1.Text")
Also see helpfiles and post "scripting for dummies" in this forum
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/31/2017(UTC) Posts: 93 Location: KZ
Thanks: 3 times Was thanked: 10 time(s) in 10 post(s)
|
Hey @doggy! Is it possible to change the size (width) of rectangle within GT Title? I wanted to make a simple progress bar.
|
|
|
|
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: andreypetr Hey @doggy! Is it possible to change the size (width) of rectangle within GT Title? I wanted to make a simple progress bar. Need a slightly different approach for a progress bar like in this video ( say fill it with "invisible" periods, or have the rectangle on top of it ) See also this post https://forums.vmix.com/...c-progress-bar#post93365
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/31/2017(UTC) Posts: 93 Location: KZ
Thanks: 3 times Was thanked: 10 time(s) in 10 post(s)
|
|
|
|
|
vMix Forums
»
General
»
GT
»
Rectangle color change using data
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