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
tubbis_2  
#1 Posted : Sunday, September 27, 2015 8:41:02 AM(UTC)
tubbis_2

Rank: Advanced Member

Groups: Registered
Joined: 11/21/2013(UTC)
Posts: 32
Location: Stockholm

Thanks: 2 times
Was thanked: 5 time(s) in 5 post(s)
I'm trying to make a scoreboard for icehockey within the vmix title editor. It's all working very well but I lack a feature and that is to be able to set opacity for let us say a penalty clock. In the title editor you can set the opacity to either 0=don't show or 1=show. If you could control this via the API you could use this as a on/off button. Wich could be very versatile.

Maybe this function already exists but I haven't found it yet.
IceStream  
#2 Posted : Sunday, September 27, 2015 9:44:13 AM(UTC)
IceStream

Rank: Advanced Member

Groups: Registered
Joined: 3/7/2012(UTC)
Posts: 2,602
Man
Location: Canada

Thanks: 33 times
Was thanked: 501 time(s) in 470 post(s)
@ tubbis_2

Use decimals.
0.5 is 50% opacity (etc.)


Ice
tubbis_2  
#3 Posted : Sunday, September 27, 2015 7:24:07 PM(UTC)
tubbis_2

Rank: Advanced Member

Groups: Registered
Joined: 11/21/2013(UTC)
Posts: 32
Location: Stockholm

Thanks: 2 times
Was thanked: 5 time(s) in 5 post(s)
I'm not looking for semi-transparency. I want to be able to show/not show some of the elements in a vmix title preferably thru the vmix API.
Is there a way and what would be the syntax of that command?

I want to send something like this:
http://127.0.0.1:8088/API/?Function=SetOpacity&Input=1&SelectedName=AwayPenalty1&Value=0 in order to hide the penalty clock
http://127.0.0.1:8088/API/?Function=SetOpacity&Input=1&SelectedName=AwayPenalty1&Value=1 in order to show the penalty clock

I hope that this will make sense of what I'm trying to achieve
madness  
#4 Posted : Sunday, September 27, 2015 7:46:47 PM(UTC)
madness

Rank: Advanced Member

Groups: Registered
Joined: 4/16/2013(UTC)
Posts: 406
Man
Location: Iowa

Thanks: 281 times
Was thanked: 32 time(s) in 29 post(s)
I'd suggest that the penalty clock be added as a separate layer(overlay) on a virtual input that has the scoreboard on it. Make it a totally separate entity, and then it will be easily shown/hidden.

Of course this is done in vMix directly, not in the title editor. Everything you create and save in title editor as a template, will be treated as a single entity. The only way to isolate the penalty clock from the scoreboard as you request, is to put it on it's own separate layer as I suggested.
IceStream  
#5 Posted : Sunday, September 27, 2015 10:33:43 PM(UTC)
IceStream

Rank: Advanced Member

Groups: Registered
Joined: 3/7/2012(UTC)
Posts: 2,602
Man
Location: Canada

Thanks: 33 times
Was thanked: 501 time(s) in 470 post(s)
@ tubbis_2

The nice thing about vMix is that you can easily add inputs to do exactly as 'madness' suggests to accomplish your objective.
(In fact, that is precisely how I have accommodated the penalty clocks in my productions)
Unfortunately, what you are requesting (i.e. fluctuating the opacity of just one element within an XAML graphic) is not currently possible.
But for the record, my original clock design did include 4 text fields for the penalty timers, my work-around for having them displayed or not was rather simple but effective, I merely "backspaced" them out of view in the 'Title Editor' once they zeroed out (with no characters in the text field, the space is empty). As soon as the "Shortcut" is triggered to start/stop the timer, the field is filled again from the start point and displays on screen.
The difficulty became managing everything properly, it was next to impossible amidst everything else, if something got out of whack (which invariably did and will happen) your mistakes are in plain view for all to see.
I have found that using a separate overlay graphic for the penalty clocks works much better (as madness has pointed out).


Ice
thanks 1 user thanked IceStream for this useful post.
madness on 9/29/2015(UTC)
Thremir  
#6 Posted : Monday, September 28, 2015 5:35:17 AM(UTC)
Thremir

Rank: Advanced Member

Groups: Registered
Joined: 9/17/2013(UTC)
Posts: 173
Man
Location: Norway

Thanks: 10 times
Was thanked: 56 time(s) in 29 post(s)
I often use bindings for this:

<TextBlock Opacity="{Binding Text, ElementName=Text_Opacity}" ... />
<TextBlock x:Name="Text_Opacity" Opacity="0" Text="1" ... />

You then edit the "Text_Opacity" text field to anywhere between 0 and 1 in vMix or via Web API and the opacity of the other textblock is changed.


Cheers,
Håvard

EDIT: Bugs in "code" (had to add lowerscores to name)
richardgatarski  
#7 Posted : Monday, September 28, 2015 10:49:58 AM(UTC)
richardgatarski

Rank: Advanced Member

Groups: Registered
Joined: 2/18/2014(UTC)
Posts: 1,812
Location: Stockholm

Thanks: 137 times
Was thanked: 292 time(s) in 246 post(s)
Håvard, could you send me such a title? Would like to try it with SmartTitler.
Thremir  
#8 Posted : Monday, September 28, 2015 11:14:09 AM(UTC)
Thremir

Rank: Advanced Member

Groups: Registered
Joined: 9/17/2013(UTC)
Posts: 173
Man
Location: Norway

Thanks: 10 times
Was thanked: 56 time(s) in 29 post(s)
Yeah sure, here is just something I put together really quick

NOTE: The text is black by default, overlay it onto something or change it to white.
File Attachment(s):
binding example.xaml (3kb) downloaded 26 time(s).

You cannot view/download attachments. Try to login or register.
thanks 1 user thanked Thremir for this useful post.
richardgatarski on 9/29/2015(UTC)
richardgatarski  
#9 Posted : Tuesday, September 29, 2015 3:30:53 AM(UTC)
richardgatarski

Rank: Advanced Member

Groups: Registered
Joined: 2/18/2014(UTC)
Posts: 1,812
Location: Stockholm

Thanks: 137 times
Was thanked: 292 time(s) in 246 post(s)
@Håvard, thanks! Will be back when I tried. Found that I need to set the opacity with "." as decimal point. Other settings in vMix typically expect what is defined for the regional Windows setting (in my case ",").
jens  
#10 Posted : Sunday, November 8, 2015 10:28:55 AM(UTC)
jens

Rank: Member

Groups: Registered
Joined: 5/4/2015(UTC)
Posts: 26
Man
Location: Germany

Thanks: 3 times
Was thanked: 2 time(s) in 2 post(s)
Hi Håvard,

just q quick note, very cool stuff with that Binding functionality.

It works fine via the Title Editor inside VMix, via API - but if change the Opacity Value via the Web Interface - after hitting Update or pushing Enter it always writes "Text" 3x in all text fields. So after 3 or 4 opacity changes you end up with totally filled up text fields.

Restarted Vmix, Restarted Browser, always the same.

Cheers

Jens
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.