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,416
Belgium
Location: Belgium

Thanks: 306 times
Was thanked: 996 time(s) in 826 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: Registered
Joined: 3/20/2014(UTC)
Posts: 2,719
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 796 time(s) in 590 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,416
Belgium
Location: Belgium

Thanks: 306 times
Was thanked: 996 time(s) in 826 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,416
Belgium
Location: Belgium

Thanks: 306 times
Was thanked: 996 time(s) in 826 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 :)
doggy  
#9 Posted : Sunday, April 18, 2021 4:02:06 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 306 times
Was thanked: 996 time(s) in 826 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  
#10 Posted : Sunday, April 18, 2021 5:52:32 PM(UTC)
Peter1000

Rank: Advanced Member

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

Thanks: 19 times
Was thanked: 80 time(s) in 61 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)
doggy  
#11 Posted : Monday, April 19, 2021 12:27:14 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 306 times
Was thanked: 996 time(s) in 826 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
ciberego  
#12 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  
#13 Posted : Wednesday, September 1, 2021 4:26:52 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 306 times
Was thanked: 996 time(s) in 826 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  
#14 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  
#15 Posted : Wednesday, September 1, 2021 10:48:17 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 306 times
Was thanked: 996 time(s) in 826 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  
#16 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
minhdowndown  
#17 Posted : Saturday, October 2, 2021 1:48:52 AM(UTC)
minhdowndown

Rank: Member

Groups: Registered
Joined: 9/2/2021(UTC)
Posts: 11
Viet Nam
Location: VN

Thanks: 4 times
Hello, sorry for bump this thread up but is there a script way to check if the input color value is valid? I accidently typed the wrong hex color and the script stop immediately.
doggy  
#18 Posted : Saturday, October 2, 2021 2:27:59 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 306 times
Was thanked: 996 time(s) in 826 post(s)
Originally Posted by: minhdowndown Go to Quoted Post
Hello, sorry for bump this thread up but is there a script way to check if the input color value is valid? I accidently typed the wrong hex color and the script stop immediately.


Need to build error trapping within your script !

Easiest is using a Try Catch statement
thanks 1 user thanked doggy for this useful post.
minhdowndown on 10/2/2021(UTC)
minhdowndown  
#19 Posted : Saturday, October 2, 2021 2:13:25 PM(UTC)
minhdowndown

Rank: Member

Groups: Registered
Joined: 9/2/2021(UTC)
Posts: 11
Viet Nam
Location: VN

Thanks: 4 times
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: minhdowndown Go to Quoted Post
Hello, sorry for bump this thread up but is there a script way to check if the input color value is valid? I accidently typed the wrong hex color and the script stop immediately.


Need to build error trapping within your script !

Easiest is using a Try Catch statement


Thanks very much. Just a little off-topic, how did you made page-to-page GT title like this? I tried some ways to make one like this but failed.



doggy  
#20 Posted : Saturday, October 2, 2021 4:54:33 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 306 times
Was thanked: 996 time(s) in 826 post(s)
Originally Posted by: minhdowndown Go to Quoted Post

Thanks very much. Just a little off-topic, how did you made page-to-page GT title like this? I tried some ways to make one like this but failed.



As mentioned in the video description : using OnDataChange within the title animation

fadetitle.JPG (44kb) downloaded 8 time(s).

Data Source is like
Name1, Subject...
Name2, Subject...
Name3, Subject...
thanks 1 user thanked doggy for this useful post.
minhdowndown on 10/4/2021(UTC)
Users browsing this topic
Guest
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.