vMix Forums
»
General
»
General Discussion
»
XAML - Clipping text with Shapes
Rank: Advanced Member
Groups: Registered
Joined: 7/15/2018(UTC) Posts: 109 Location: Las Vegas, NV Thanks: 14 times Was thanked: 8 time(s) in 7 post(s)
|
Say I want to make an animated lower third, a rectangle. I want the rectangle to expand and the text within the rectangle to appear as the rectangle expands...the text mask is revealed as the rectangle extends.
Is there an easy way to do that? It seems as though, from the hours of Googling I've gone through, it's not easy with our flavor of WPF 3.5.
Please, dear Jesus, let there be a better way for future versions of vMix!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
if i understand your visualisation correctly :
have you looked at the viewbox control ? with a bit of fade animation etc also were are the elements bound to (window , grid,...)
ps a visual of an idea i always find helpfull to understand the goal
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
or is this what you mean ? (quick and dirty wpf 3.5) File Attachment(s): cliptest.zip (194kb) downloaded 56 time(s).You cannot view/download attachments. Try to login or register.
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/15/2018(UTC) Posts: 109 Location: Las Vegas, NV Thanks: 14 times Was thanked: 8 time(s) in 7 post(s)
|
Yes! It's quick and dirty but that's the idea (not the blue box but the white one).
Essentially, trying to make the lower third only as long as it needs to be, and give it a maxwidth so it can't go beyond a certain length.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Quote:Essentially, trying to make the lower third only as long as it needs to be, and give it a maxwidth so it can't go beyond a certain length. This seems to be something totally different than your original post . from what i understand here you dont want the TEXT field to be longer . this has been addressed here before by using a viewbox where the text will reduce in size but the total lenght of the textbox will remain the same. There are other means to limit a text lenght too the q & d effect (Yellow box) is just animating a clipping path
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/15/2018(UTC) Posts: 109 Location: Las Vegas, NV Thanks: 14 times Was thanked: 8 time(s) in 7 post(s)
|
Here's the thought on what I am trying to do. Maybe I've been crap explaining it. (Worth nothing searching Clipping Path only garners two results, me and one other post about a ticker) The attached shows it. Rather than the white bar being all the way across... I'd like it to max out at the length of the text, with a little padding to the side. Perhaps the way to do it would be to have the "Blue" box in your example be white, and the textblock to not have a background color at all. But to have that blue box expand and contract with the length of the text within the text block within it. shawntempesta attached the following image(s): Graphics-Idea-4.jpg (50kb) downloaded 17 time(s).You cannot view/download attachments. Try to login or register.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
there are 2 different textboxes within your white box !!! so which one whould the white box respond to ?? calculations will be involved http://bfy.tw/JJUebtw, each one of your posts discribed a different goal
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/15/2018(UTC) Posts: 109 Location: Las Vegas, NV Thanks: 14 times Was thanked: 8 time(s) in 7 post(s)
|
LOL thank you for letting me know. I just realized I have my two goals confused/combined in this thread.
1: Animation where the text masks in.
2: A box that is only as big as it needs to be.
As far as which... frankly whichever is longer.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
resizing your "white " background based on the lenght of your text
have the width of your "white" rectangle or border be binded to the actual length of your textbox tweak with adding extra rectangles for the extra space needed double this idea for the other text box so the longer text will make it look like it responds to the longest one
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
quick and dirty again File Attachment(s): cliptest2.zip (249kb) downloaded 37 time(s).You cannot view/download attachments. Try to login or register.
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/8/2016(UTC) Posts: 49 Location: Ukraine Thanks: 11 times Was thanked: 5 time(s) in 3 post(s)
|
You need to use Clipping path. Use youtube there a good tutorial about Expression Blend Clipping path. 1. Make a "Canvas" 2. Rectangle and text put inside a "Canvas" 3. Draw by "Pen" recatangle above "Canvas" 4. Select "Canvas" + "Pen draw", right button make clipping path 5. Go to animation then animate canvas rectagle text as you need https://fex.net/747308296250
|
2 users thanked tkachuk.alex for this useful post.
|
|
|
vMix Forums
»
General
»
General Discussion
»
XAML - Clipping text with Shapes
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