vMix Forums
»
General
»
GT
»
Change height of the graphic depending on the content
Rank: Member
Groups: Registered
Joined: 1/12/2023(UTC) Posts: 19
Thanks: 5 times
|
Hello,
Even don't know how to name this correct so couldn't find in forum :)
THE TASK:
During stream of a sports game sometimes to show livescore of other matches.
THE PROBLEM:
There can be 1 match, but can be 3 or 5 matches. I want to take data from Excel file via DataSource.
But how to make graphics to change its height automaticaly depending of ammount of matches (rows in Excel)? If there are 2 matches, my graphics field is 200 px, but if there are 4 matches - it should become 400 px.
Any suggestions? Thank you!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,243 Location: Belgium Thanks: 294 times Was thanked: 960 time(s) in 794 post(s)
|
Originally Posted by: afonia Hello,
Even don't know how to name this correct so couldn't find in forum :)
THE TASK:
During stream of a sports game sometimes to show livescore of other matches.
THE PROBLEM:
There can be 1 match, but can be 3 or 5 matches. I want to take data from Excel file via DataSource.
But how to make graphics to change its height automaticaly depending of ammount of matches (rows in Excel)? If there are 2 matches, my graphics field is 200 px, but if there are 4 matches - it should become 400 px.
Any suggestions? Thank you! What do you mean by graphics? Guess you mean a textbox ? One can set a textbox (title designer) to automatically resize vertically ( fixed width). each piece of text separated with a linefeed/cr will expand the box per line added Problem is one can not have mutiple items/rows of a datasource in one textbox unless you have a script taking all the rows data and convert it to the above mentioned structure as one to put in that box . One can "attach" say a colored rectangle to the textbox that will grow as the textbox grows . its called bounding. There is a vMix tutorial video explaining this "autoscaling of titles"
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Member
Groups: Registered
Joined: 1/12/2023(UTC) Posts: 19
Thanks: 5 times
|
Originally Posted by: doggy What do you mean by graphics? Guess you mean a textbox ?
Well, I mean PNG file I use in GT. I want rows to be added there depending on ammount of rows of text I have. Ex: https://app.box.com/s/7w4qzedm2pl8qgfpj4o8n575m1ucd15mOne can set a textbox (title designer) to automatically resize vertically ( fixed width). each piece of text separated with a linefeed/cr will expand the box per line added Problem is one can not have mutiple items/rows of a datasource in one textbox unless you have a script taking all the rows data and convert it to the above mentioned structure as one to put in that box . Originally Posted by: doggy One can "attach" say a colored rectangle to the textbox that will grow as the textbox grows . its called bounding. There is a vMix tutorial video explaining this "autoscaling of titles" Thank you! For basic needs it really works. Here is a link with tutorial mentioned: https://www.youtube.com/watch?v=uH_e35Lgdxo
|
|
|
|
Rank: Member
Groups: Registered
Joined: 1/12/2023(UTC) Posts: 19
Thanks: 5 times
|
Originally Posted by: doggy One can "attach" say a colored rectangle to the textbox that will grow as the textbox grows . its called bounding. There is a vMix tutorial video explaining this "autoscaling of titles" Any way to do the same bounding to PNG file and not rectangle? I tried, it grows a bit, but not as good as with rectangle...
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,243 Location: Belgium Thanks: 294 times Was thanked: 960 time(s) in 794 post(s)
|
Originally Posted by: afonia Originally Posted by: doggy One can "attach" say a colored rectangle to the textbox that will grow as the textbox grows . its called bounding. There is a vMix tutorial video explaining this "autoscaling of titles" Any way to do the same bounding to PNG file and not rectangle? I tried, it grows a bit, but not as good as with rectangle... Would that not deform the image ? Maybe fill the rectangle with an image ?
|
|
|
|
vMix Forums
»
General
»
GT
»
Change height of the graphic depending on the content
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