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
Peter1000  
#1 Posted : Friday, January 1, 2021 7:43:10 PM(UTC)
Peter1000

Rank: Advanced Member

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

Thanks: 16 times
Was thanked: 73 time(s) in 54 post(s)
I have been looking for a simple solution for growing bars with the GT Title.

Here now my example, how I tried to solve this.

The gtzip template has ONE bar, consisting of 579 individual text fields (hard work :-), each 3 pixels wide, each with the character "full block" of Arial █

Load the GT title growingbars1.gtzip into vMix.
Adjust the size and position of the first bar with the Position sliders of this Input.
Create 3 virtual copies of this bar.
Move them with the Position sliders to the right position in each Input.

(IMPORTANT) Rename the 3 copies to:
growingbars2.gtzip
growingbars3.gtzip
growingbars4.gtzip

load a Color Transparent input.
add the 4 growingbar titles to the multiviewer.
This input is then your finished overlay signal.

For the bars to move, 2 scripts are needed.
one to clear the bars
one to make the bars grow.

The scripts are loaded with the preset.

for testing, please put all parts on the desktop.
-Project growingbars.vmix
-GT title growingbar1.gtzip

All necessary variables can be changed in the script growingbars.
(color,transparence of the bar, speed, percentages)
The script is designed for a total of 100%.

The bar width is adjusted automatically, i.e. the participant with the highest percentage gets the full bar width.

Shortcuts:
C clears the bars
G starts bars growing

All needed files (project, titel) are here
thanks 1 user thanked Peter1000 for this useful post.
AGUS2572 on 9/29/2022(UTC)
doggy  
#2 Posted : Friday, January 1, 2021 9:44:10 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 283 times
Was thanked: 916 time(s) in 755 post(s)
Nicely done Peter

Quote:
579 individual text fields ????


One for the bar and one for the value (percentage) :-)



One constant running script to translate user value (could be from datasource) , another if one wants to do a full grow or shrink animation
LMTunkara  
#3 Posted : Wednesday, November 10, 2021 10:55:54 PM(UTC)
LMTunkara

Rank: Member

Groups: Registered
Joined: 7/18/2019(UTC)
Posts: 12
Gambia
Location: West Africa

Thanks: 4 times
Firstly, thanks for sharing your work.

I was wondering, how can I make a bar that changes size based on data input? I am working on an election package and want to make a bar graph that represents the various percentages candidates receive?

Cheers

Lassana Tunkara
doggy  
#4 Posted : Thursday, November 11, 2021 12:40:56 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 283 times
Was thanked: 916 time(s) in 755 post(s)
Originally Posted by: LMTunkara Go to Quoted Post
Firstly, thanks for sharing your work.

I was wondering, how can I make a bar that changes size based on data input? I am working on an election package and want to make a bar graph that represents the various percentages candidates receive?

Cheers

Lassana Tunkara


Thats what all the above does. There is also another post in this forum from someone who created something for election results
LMTunkara  
#5 Posted : Thursday, November 11, 2021 12:52:20 AM(UTC)
LMTunkara

Rank: Member

Groups: Registered
Joined: 7/18/2019(UTC)
Posts: 12
Gambia
Location: West Africa

Thanks: 4 times
I see. Let me dl the files and see if I can work it out.

Cheers
recrieprodutora  
#6 Posted : Wednesday, November 2, 2022 4:31:47 AM(UTC)
recrieprodutora

Rank: Newbie

Groups: Registered
Joined: 9/10/2019(UTC)
Posts: 3
Brazil
Location: Rio de Janeiro

Originally Posted by: doggy Go to Quoted Post
Nicely done Peter

Quote:
579 individual text fields ????


One for the bar and one for the value (percentage) :-)



One constant running script to translate user value (could be from datasource) , another if one wants to do a full grow or shrink animation



Is there an update for this script?
Could you share how you arrived at this result? The script or .xaml format?

Thks!

doggy  
#7 Posted : Wednesday, November 2, 2022 5:13:25 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 283 times
Was thanked: 916 time(s) in 755 post(s)
Originally Posted by: recrieprodutora Go to Quoted Post


Is there an update for this script?
Could you share how you arrived at this result? The script or .xaml format?

Thks!



GT title (designer)

A textfield and a colored rectangle
Textfield set to automatic resizing to width
crop/mask the rectangle with the textfield
number of character in textfield will determin the length of the rectangle

A vMix vb.net script that reads a value (from title/datasource, or other) and converts it to a number of characters needed/set within the bar textfield (a percentage of max length of the bar for example) or just a length of text entered manually if one wants to avoid some math ;-)
Step resolution of the bar is related to the font size used

That's it
randigusti  
#8 Posted : Monday, December 11, 2023 7:44:20 PM(UTC)
randigusti

Rank: Newbie

Groups: Registered
Joined: 12/2/2023(UTC)
Posts: 4
Indonesia
Location: Jakarta

hello doggy , i am newbie at scripting. can you please help me make the script can growing the bar base from countdown
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.