Rank: Advanced Member
Groups: Registered
Joined: 7/19/2017(UTC) Posts: 45 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. LinkI 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
|