vMix Forums
	 » 
	General
	 » 
	GT
	 » 
	Rectangle color change using data
	 
	
        
            
            
    | 
	Rank: Advanced Member
 Groups: Registered
 Joined: 12/27/2012(UTC) Posts: 5,445  Location: BelgiumThanks: 311 timesWas thanked: 1005 time(s) in 829 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,719   Location: Bordeaux, FranceThanks: 243 timesWas 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 ! | 
    | 
             | 
            
         | 
    |  | 
        
        
        
    
        
            
            
    | 
	Rank: Advanced Member
 Groups: Registered
Joined: 8/2/2013(UTC)
 Posts: 462
 
 Thanks: 38 timesWas 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: BangladeshThanks: 19 times
 |  | 
    | 
             | 
            
         | 
    |  | 
        
        
        
    
        
            
            
    | 
	Rank: Advanced Member
 Groups: Registered
 Joined: 12/27/2012(UTC) Posts: 5,445  Location: BelgiumThanks: 311 timesWas thanked: 1005 time(s) in 829 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,445  Location: BelgiumThanks: 311 timesWas thanked: 1005 time(s) in 829 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: Advanced Member
 Groups: Registered
 Joined: 12/27/2012(UTC) Posts: 5,445  Location: BelgiumThanks: 311 timesWas thanked: 1005 time(s) in 829 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: 316 Thanks: 22 timesWas thanked: 81 time(s) in 62 post(s)
 
 |  | 
    | 
              1 user thanked Peter1000 for this useful post. |  | 
    |  | 
        
        
        
    
        
            
            
    | 
	Rank: Advanced Member
 Groups: Registered
 Joined: 12/27/2012(UTC) Posts: 5,445  Location: BelgiumThanks: 311 timesWas thanked: 1005 time(s) in 829 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: Newbie
 Groups: Registered
 Joined: 2/13/2021(UTC) Posts: 4  Location: PortoThanks: 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,445  Location: BelgiumThanks: 311 timesWas thanked: 1005 time(s) in 829 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 timesWas 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,445  Location: BelgiumThanks: 311 timesWas thanked: 1005 time(s) in 829 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 timesWas thanked: 10 time(s) in 10 post(s)
 
 |  | 
    | 
             | 
            
         | 
    |  | 
        
        
        
    
        
            
            
    | 
	Rank: Member
 Groups: Registered
 Joined: 9/2/2021(UTC) Posts: 11  Location: VNThanks: 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. 
 | 
    | 
             | 
            
         | 
    |  | 
        
        
        
            
        
            
            
    | 
	Rank: Advanced Member
 Groups: Registered
 Joined: 12/27/2012(UTC) Posts: 5,445  Location: BelgiumThanks: 311 timesWas thanked: 1005 time(s) in 829 post(s)
 
 | 
            
		      
                Originally Posted by: minhdowndown  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  | 
    | 
              1 user thanked doggy for this useful post. |  | 
    |  | 
        
        
        
    
        
            
            
    | 
	Rank: Member
 Groups: Registered
 Joined: 9/2/2021(UTC) Posts: 11  Location: VNThanks: 4 times
 | 
            
		      
                Originally Posted by: doggy  Originally Posted by: minhdowndown  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. | 
    | 
             | 
            
         | 
    |  | 
        
        
        
            
        
            
            
    | 
	Rank: Advanced Member
 Groups: Registered
 Joined: 12/27/2012(UTC) Posts: 5,445  Location: BelgiumThanks: 311 timesWas thanked: 1005 time(s) in 829 post(s)
 
 | 
            
		      
                Originally Posted by: minhdowndown  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 9 time(s). Data Source is like Name1, Subject... Name2, Subject... Name3, Subject... | 
    | 
              1 user thanked doggy for this useful post. |  | 
    |  | 
        
        
        
    
                           
	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