logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
doggy  
#1 Posted : Saturday, December 12, 2020 9:47:19 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 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 ;-)





thanks 5 users thanked doggy for this useful post.
sontoloyo on 12/13/2020(UTC), Rinsky on 12/16/2020(UTC), monamiga on 2/4/2021(UTC), shuizhiyu on 4/18/2021(UTC), minhdowndown on 10/2/2021(UTC)
DWAM  
#2 Posted : Saturday, December 12, 2020 9:59:14 PM(UTC)
DWAM

Rank: Advanced Member

Groups ready for retrieval: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
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 !
Rinsky  
#3 Posted : Wednesday, December 16, 2020 2:15:13 AM(UTC)
Rinsky

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
blue28  
#4 Posted : Friday, December 18, 2020 7:23:58 PM(UTC)
blue28

Rank: Member

Groups: Registered
Joined: 1/27/2018(UTC)
Posts: 15
Man
Location: Bangladesh

Thanks: 19 times
great, how you do this
doggy  
#5 Posted : Friday, December 18, 2020 7:58:46 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
Originally Posted by: blue28 Go to Quoted Post
great, how you do this


it's described in the post !
thanks 1 user thanked doggy for this useful post.
blue28 on 1/4/2021(UTC)
hive8  
#6 Posted : Saturday, February 27, 2021 8:54:44 AM(UTC)
hive8

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.
doggy  
#7 Posted : Saturday, February 27, 2021 9:14:10 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
Originally Posted by: hive8 Go to Quoted Post
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
hive8  
#8 Posted : Friday, March 5, 2021 6:00:38 PM(UTC)
hive8

Rank: Member

Groups: Registered
Joined: 11/14/2012(UTC)
Posts: 10
Location: Los Angeles

One can dream :)
shuizhiyu  
#9 Posted : Sunday, April 18, 2021 1:40:45 PM(UTC)
shuizhiyu

Rank: Member

Groups: Registered
Joined: 5/27/2019(UTC)
Posts: 9
China
Location: ni

Thanks: 8 times
Originally Posted by: doggy Go to Quoted Post
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 ?
doggy  
#10 Posted : Sunday, April 18, 2021 4:02:06 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
Originally Posted by: shuizhiyu Go to Quoted Post


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)
thanks 1 user thanked doggy for this useful post.
shuizhiyu on 4/18/2021(UTC)
Peter1000  
#11 Posted : Sunday, April 18, 2021 5:52:32 PM(UTC)
Peter1000

Rank: Advanced Member

Groups: Registered
Joined: 1/25/2019(UTC)
Posts: 302
Switzerland

Thanks: 17 times
Was thanked: 79 time(s) in 60 post(s)
You can use argb values or colornames from here https://www.w3schools.com/colors/colors_names.asp
Code:
API.Function("SetTextColour",Input:="titlename.gtzip",SelectedName:="colordata1.Text",Value:="transparent")
thanks 1 user thanked Peter1000 for this useful post.
shuizhiyu on 4/18/2021(UTC)
shuizhiyu  
#12 Posted : Sunday, April 18, 2021 6:35:52 PM(UTC)
shuizhiyu

Rank: Member

Groups: Registered
Joined: 5/27/2019(UTC)
Posts: 9
China
Location: ni

Thanks: 8 times
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: shuizhiyu Go to Quoted Post


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?
shuizhiyu  
#13 Posted : Sunday, April 18, 2021 6:37:15 PM(UTC)
shuizhiyu

Rank: Member

Groups: Registered
Joined: 5/27/2019(UTC)
Posts: 9
China
Location: ni

Thanks: 8 times
Originally Posted by: Peter1000 Go to Quoted Post
You can use argb values or colornames from here https://www.w3schools.com/colors/colors_names.asp
Code:
API.Function("SetTextColour",Input:="titlename.gtzip",SelectedName:="colordata1.Text",Value:="transparent")



Thank you

Thank you for your code

But this code doesn't seem to work
doggy  
#14 Posted : Monday, April 19, 2021 12:27:14 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
Originally Posted by: shuizhiyu Go to Quoted Post
Originally Posted by: Peter1000 Go to Quoted Post
You can use argb values or colornames from here https://www.w3schools.com/colors/colors_names.asp
Code:
API.Function("SetTextColour",Input:="titlename.gtzip",SelectedName:="colordata1.Text",Value:="transparent")



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
shuizhiyu  
#15 Posted : Monday, April 19, 2021 4:56:23 PM(UTC)
shuizhiyu

Rank: Member

Groups: Registered
Joined: 5/27/2019(UTC)
Posts: 9
China
Location: ni

Thanks: 8 times
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: shuizhiyu Go to Quoted Post
Originally Posted by: Peter1000 Go to Quoted Post
You can use argb values or colornames from here https://www.w3schools.com/colors/colors_names.asp
Code:
API.Function("SetTextColour",Input:="titlename.gtzip",SelectedName:="colordata1.Text",Value:="transparent")



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
ciberego  
#16 Posted : Wednesday, September 1, 2021 9:33:30 AM(UTC)
ciberego

Rank: Newbie

Groups: Registered
Joined: 2/13/2021(UTC)
Posts: 4
Portugal
Location: Porto

Thanks: 1 times
Originally Posted by: doggy Go to Quoted Post
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
doggy  
#17 Posted : Wednesday, September 1, 2021 4:26:52 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
Originally Posted by: ciberego Go to Quoted Post

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
andreypetr  
#18 Posted : Wednesday, September 1, 2021 9:42:14 PM(UTC)
andreypetr

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.
doggy  
#19 Posted : Wednesday, September 1, 2021 10:48:17 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
Originally Posted by: andreypetr Go to Quoted Post
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
andreypetr  
#20 Posted : Thursday, September 2, 2021 3:39:31 AM(UTC)
andreypetr

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)
Thanks
Users browsing this topic
Guest (8)
2 Pages12>
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.