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
NewsworthyVision  
#1 Posted : Thursday, January 9, 2020 8:59:23 PM(UTC)
NewsworthyVision

Rank: Advanced Member

Groups: Registered
Joined: 7/19/2017(UTC)
Posts: 45
United Kingdom

Thanks: 11 times
Was thanked: 14 time(s) in 7 post(s)
Hello again,

I'm trying to use the method Doggy gave us for changing colours of elements of graphics on the fly, by using text blocks. Link

I opened a GTZIP file using Atom or Notepad+, and it looks largely like an XML file, but clearly isn't, as once you save vMix thinks it is corrupted.

It's these lines below I'd love to integrate somehow into the newer files, so they can target elements within the new package.

Code:
<TextBlock x:Name="HOME_COLOUR" HorizontalAlignment="Left" Height="16" Margin="-168,88,0,0" TextWrapping="Wrap" Text="#ff0066" VerticalAlignment="Top" Width="58.667" Foreground="White"/>
        <TextBlock x:Name="HOME_COLOUR_DARK" HorizontalAlignment="Left" Height="16" Margin="-168,108,0,0" TextWrapping="Wrap" Text="#cc0052" VerticalAlignment="Top" Width="58.667" Foreground="White"/>
        <TextBlock x:Name="AWAY_COLOUR" HorizontalAlignment="Left" Height="16" Margin="-168,128,0,0" TextWrapping="Wrap" Text="#0066ff" VerticalAlignment="Top" Width="58.667" Foreground="White"/>
        <TextBlock x:Name="AWAY_COLOUR_DARK" HorizontalAlignment="Left" Height="16" Margin="-168,148,0,0" TextWrapping="Wrap" Text="#0052cc" VerticalAlignment="Top" Width="58.667" Foreground="White"/>

        <Rectangle Fill="#FF212121" HorizontalAlignment="Left" Height="70" Margin="96,54,0,0" Stroke="Black" VerticalAlignment="Top" Width="1040" Panel.ZIndex="0"/>
        <Rectangle Fill="{Binding Text, ElementName=HOME_COLOUR}" HorizontalAlignment="Left" Width="290" Height="70" Margin="96,54,0,0" Stroke="Black" VerticalAlignment="Top" Panel.ZIndex="1" StrokeThickness="0"/>
        <Rectangle Fill="{Binding Text, ElementName=HOME_COLOUR_DARK}" HorizontalAlignment="Left" Width="100" Height="70" Margin="386,54,0,0" Stroke="Black" VerticalAlignment="Top" Panel.ZIndex="1" StrokeThickness="0"/>
        <Rectangle Fill="{Binding Text, ElementName=AWAY_COLOUR}" HorizontalAlignment="Left" Width="290" Height="70" Margin="486,54,0,0" Stroke="Black" VerticalAlignment="Top" Panel.ZIndex="1" StrokeThickness="0"/>
        <Rectangle Fill="{Binding Text, ElementName=AWAY_COLOUR_DARK}" HorizontalAlignment="Left" Width="100" Height="70" Margin="776,54,0,0" Stroke="Black" VerticalAlignment="Top" Panel.ZIndex="1" StrokeThickness="0"/>


Is there any way to do this? It would be a major headache solver.

Many thanks,

Nick
doggy  
#2 Posted : Thursday, January 9, 2020 9:29:39 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
Putting diesel in a petrol car isn't a good idea ;-)
NewsworthyVision  
#3 Posted : Thursday, January 9, 2020 10:03:55 PM(UTC)
NewsworthyVision

Rank: Advanced Member

Groups: Registered
Joined: 7/19/2017(UTC)
Posts: 45
United Kingdom

Thanks: 11 times
Was thanked: 14 time(s) in 7 post(s)
That's true, but diesel clearly has a bit more range in some areas. ;)

No chance then Doggy?
abtaster  
#4 Posted : Friday, May 14, 2021 7:26:39 PM(UTC)
abtaster

Rank: Member

Groups: Registered
Joined: 2/19/2017(UTC)
Posts: 17

Hi,

have you found a way to add DataTriggers Binding Text to GT Titler?

Thanks
Henrik
doggy  
#5 Posted : Friday, May 14, 2021 8:05:03 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
XAML and GT Completely different things !!!
abtaster  
#6 Posted : Sunday, May 16, 2021 6:22:31 PM(UTC)
abtaster

Rank: Member

Groups: Registered
Joined: 2/19/2017(UTC)
Posts: 17

I know!
We have a statistic tool, which gives us a XML file. How can we change the the grafic "0.png", "1.png" or "2.png" if the specific field just gives us a "0", "1" or "2" in GT Titler.
doggy  
#7 Posted : Sunday, May 16, 2021 6:31:55 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
Originally Posted by: abtaster Go to Quoted Post
I know!
We have a statistic tool, which gives us a XML file. How can we change the the grafic "0.png", "1.png" or "2.png" if the specific field just gives us a "0", "1" or "2" in GT Titler.


Can you be a bit more specific pls!

what exactly do you want to do , based on what info and where is the info coming from ?

There is data sources & scripting options to, but again what when where from

Doesn't even sound to be related to the OP
abtaster  
#8 Posted : Monday, May 17, 2021 8:05:11 AM(UTC)
abtaster

Rank: Member

Groups: Registered
Joined: 2/19/2017(UTC)
Posts: 17

I have a XML file which fills my text layers. in between are also infos that i want to assosiate with images.
"value1" eg "2"
"value2" eg "1"
ratio value1 - value2: "0" = equal ; "1" = "value1">"value2; "2" "value1"<"value2"

So I want to have a green backgroung for "1", red for "2" and nothing for "0".

I maybe found the solution to display this by using the placeholder c:\image{0}.png . but now all additional imagelayers are aranged at the end in the title editor and not inbetween the text layers as arranged in GT Titler.
doggy  
#9 Posted : Monday, May 17, 2021 11:29:15 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
Originally Posted by: abtaster Go to Quoted Post
I maybe found the solution to display this by using the placeholder c:\image{0}.png .


There you go, we do this all the time

Quote:
but now all additional imagelayers are aranged at the end in the title editor and not inbetween the text layers as arranged in GT Titler.


Yeah seems to be a GT way for the editor, but should it matter once connected to the data source?
if you name the title items the same as the column names of your datasource one can even automate the connection settings in one go

If you want to have "formulas", make a little script that reads the values in a "hidden" textblock, performs the decision and replace images using the functions available for this
Users browsing this topic
Guest
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.