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
admin  
#1 Posted : Tuesday, August 17, 2010 10:55:09 AM(UTC)
admin

Rank: Administration

Groups: Administrators
Joined: 1/13/2010(UTC)
Posts: 5,211
Man
Location: Gold Coast, Australia

Was thanked: 4301 time(s) in 1523 post(s)
Updated October 2012

Introduction
XAML is the format vMix uses for the Title feature. If you are familiar with XML and XAML, the following instructions
maybe useful to you if you would like to build your own vMix compatible titles.

Example

The following is an example of an XAML file that can be used in vMix as an overlay.

http://www.vmix.com.au/d...load/vMixXamlExample.zip

How to use this example:

Open in vMix

Extract the zip file to an empty folder and from vMix go to:

1. Add New Input
2. Select the Xaml tab.
3. Click Browse
4. Browse to the empty folder created above and browse through the two vMixXamlExample folders until MainControl.xaml appears.
5. Click Open
6. Click OK.
7. The overlay is now ready to use.

Edit text in vMix

vMix includes the ability to edit any text within the overlay live.
To do this:

1. Right click the Input Preview and select Text Editor from the menu.
2. Change the text to anything you like. Font, colour and size can also be changed within this window.
3. The updated text should immediately appear in vMix.

Edit XAML in Expression Blend 4

This example can be edited from Microsoft Expression Blend 4.
To do this open up Microsoft Expression Blend 4 and browse to the vMixXamlExample folder and open up the vMixXamlExample file.

This example can also be edited from Visual Basic 2010 Express which is free from the Microsoft web site.

thanks 2 users thanked admin for this useful post.
radu2001 on 8/17/2010(UTC), ELCHAPIN on 9/13/2010(UTC)
radu2001  
#2 Posted : Saturday, August 28, 2010 5:29:10 PM(UTC)
radu2001

Rank: Newbie

Groups: Registered
Joined: 4/28/2010(UTC)
Posts: 6
Location: Timisoara

Thanks: 1 times
Is there a way to use a font of your own choice (by embedding it in the application?) I can't seem to get it working. It keeps displaying the default font (even though the custom font is installed in Windows too).
ELCHAPIN  
#3 Posted : Monday, September 13, 2010 7:10:42 PM(UTC)
ELCHAPIN

Rank: Advanced Member

Groups: Registered
Joined: 4/21/2010(UTC)
Posts: 111

Thanks: 46 times
Was thanked: 2 time(s) in 2 post(s)
EASY TO works and achieves the desired
Thank you.
blis  
#4 Posted : Friday, November 5, 2010 7:45:40 AM(UTC)
blis

Rank: Newbie

Groups: Registered
Joined: 10/31/2010(UTC)
Posts: 6
Location: Brisbane

FYI.

It wouldn't work in 720 x 576, seemed the gfx was offset, so I changed to 1920 x 1080 and could see the message and background...

nice work...

After playing with it a while..

Lemme Rephrase... AWESOME!

PS: I changed the font and it works for me.

<TextBlock x:Name="textBlock" Height="37.5" TextWrapping="Wrap" Text="Welcome to vMix!" Foreground="White"

FontFamily="Blackoak Std" FontSize="20" FontWeight="Bold" Canvas.Left="16.5" Canvas.Top="18.5" Width="539" RenderTransformOrigin="0.5,0.5">

Update:
Seems some fonts wont load... One that had long version text didnt seem to work. But most did, such as TrueType Outlines.
andreone72  
#5 Posted : Monday, November 15, 2010 7:32:49 AM(UTC)
andreone72

Rank: Newbie

Groups: Registered
Joined: 10/13/2010(UTC)
Posts: 7

Thanks: 3 times
This is great!!! Thank you!!

Just a question...
is it possible to build a news crawl and a digital watch in XAML?

Thank you in advance!!!

Andrea
Mauro Cesar  
#6 Posted : Friday, July 29, 2011 1:36:11 AM(UTC)
Mauro Cesar

Rank: Advanced Member

Groups: Registered
Joined: 7/21/2011(UTC)
Posts: 69
Location: Brazil

Was thanked: 4 time(s) in 4 post(s)
Martin,
You can play animations created with Microsoft Expression Blend 4? Its you post an example?

tranks

Mauro
elcosta  
#7 Posted : Sunday, September 16, 2012 7:26:37 AM(UTC)
elcosta

Rank: Newbie

Groups: Registered
Joined: 8/16/2012(UTC)
Posts: 3
Man
Location: venezuela

martin one can create one gif animation in a video or a headband or a logo ..?
allegfede  
#8 Posted : Saturday, November 10, 2012 9:25:58 AM(UTC)
allegfede

Rank: Advanced Member

Groups: Registered
Joined: 11/10/2012(UTC)
Posts: 36

Thanks: 9 times
i tried to edit the xaml with vb.net 2010 but i have got and error on the stroke tickness.

is there a way to avoid the border around logos?
smudge1977  
#9 Posted : Friday, March 17, 2017 2:10:23 PM(UTC)
smudge1977

Rank: Advanced Member

Groups: Registered
Joined: 4/3/2014(UTC)
Posts: 58
Location: UK

Thanks: 19 times
Was thanked: 4 time(s) in 1 post(s)
Hi I would like to cleanly clip text if the user 'over inputs'

ClipToBounds="True"

i.e.
<mtl:TextBlockDesign FontStyle="Normal" FontWeight="Bold" FontFamily="Calibri" Fill="#FFFFFFFF" FontSize="100" Text="Text" Name="TCSld1" Width="874.567441363378" Height="122.069999694824" Margin="1,-14,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Opacity="100" Visibility="Visible" ClipToBounds="True" InputMethod.IsInputMethodEnabled="True" />

However this does not work :(

How can i modify to xaml to ensure text does not wrap on to additional lines or go ... when it over extends a defined area but rather just clip the text

Thanks

Keith
doggy  
#10 Posted : Friday, March 17, 2017 3:20:28 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
TextTrimming="CharacterEllipsis" when using standard TextBlock
thanks 1 user thanked doggy for this useful post.
smudge1977 on 3/18/2017(UTC)
tesn  
#11 Posted : Friday, March 17, 2017 4:05:34 PM(UTC)
tesn

Rank: Advanced Member

Groups: Registered
Joined: 8/22/2013(UTC)
Posts: 92
Man
Location: Rochester, NY

Was thanked: 13 time(s) in 9 post(s)
Something else you can try if you don't want to clip the text . . .

My favorite trick for scoreboard type applications where team names and things vary in length is to wrap your textblock in a viewbox:

Code:

  <Viewbox Stretch="Uniform" Height="55" Canvas.Left="183" Width="252" Canvas.Top="13" >
      <TextBlock Text="ANDERSON" FontWeight="Bold" FontFamily="Arial" Foreground="Black" x:Name="TeamA"/>
  </Viewbox>


Obviously there's a limit . . . if the text gets way too long, the resulting text will be way too small.

-Brian
TESN.US
thanks 2 users thanked tesn for this useful post.
Stavlin on 3/18/2017(UTC), smudge1977 on 3/18/2017(UTC)
smudge1977  
#12 Posted : Saturday, March 18, 2017 10:49:41 AM(UTC)
smudge1977

Rank: Advanced Member

Groups: Registered
Joined: 4/3/2014(UTC)
Posts: 58
Location: UK

Thanks: 19 times
Was thanked: 4 time(s) in 1 post(s)
doddgy & tesn thanks for the replies

https://msdn.microsoft.c...ttrimming(v=vs.100).aspx
TextTrimming="None" is what i want!

So what i have done is take this line:
<mtl:TextBlockDesign Fill="#FFFFFF00" FontSize="164" Text="Text" Name="Text2" Width="758.961038961039" Height="188.58332824707" Margin="142.987012987013,375.714285714286,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Visibility="Visible" InputMethod.IsInputMethodEnabled="True" />

and make it into:
<TextBlock Text="Text" FontWeight="Bold" FontSize="164" TextTrimming="None" Name="Text1" Width="905.72972972973" Height="188.58332824707" Margin="10,10,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Visibility="Visible" InputMethod.IsInputMethodEnabled="True" />


What i now don't understand is why does everything work when i am not using the TextDlockDesign type from the vMix class? Why does the title editor even use this class why not just use native TextBlock ??
(I may not have used class in the right context!)

Will the TextBlock animate i wonder - this is my next thing to test out :)
Thanks folks
Users browsing this topic
Guest (4)
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.