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
doggy  
#1 Posted : Saturday, December 12, 2020 9:47:19 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 3,131
Belgium
Location: Belgium

Thanks: 178 times
Was thanked: 566 time(s) in 465 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 4 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)
DWAM  
#2 Posted : Saturday, December 12, 2020 9:59:14 PM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 773 time(s) in 585 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: 450

Thanks: 38 times
Was thanked: 37 time(s) in 33 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: 3,131
Belgium
Location: Belgium

Thanks: 178 times
Was thanked: 566 time(s) in 465 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: 3,131
Belgium
Location: Belgium

Thanks: 178 times
Was thanked: 566 time(s) in 465 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: Newbie

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

Thanks: 5 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: 3,131
Belgium
Location: Belgium

Thanks: 178 times
Was thanked: 566 time(s) in 465 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: 209
Switzerland

Thanks: 6 times
Was thanked: 46 time(s) in 36 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: Newbie

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

Thanks: 5 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: Newbie

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

Thanks: 5 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: 3,131
Belgium
Location: Belgium

Thanks: 178 times
Was thanked: 566 time(s) in 465 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: Newbie

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

Thanks: 5 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
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.