vMix Forums
»
General
»
Feature Requests
»
Be able to set opacity in a title element
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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/7/2012(UTC) Posts: 2,636 Location: Canada Thanks: 33 times Was thanked: 506 time(s) in 475 post(s)
|
@ tubbis_2
Use decimals. 0.5 is 50% opacity (etc.)
Ice
|
|
|
|
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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 4/16/2013(UTC) Posts: 406 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/7/2012(UTC) Posts: 2,636 Location: Canada Thanks: 33 times Was thanked: 506 time(s) in 475 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
|
1 user thanked IceStream for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/17/2013(UTC) Posts: 173 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)
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 2/18/2014(UTC) Posts: 1,837 Location: Stockholm
Thanks: 144 times Was thanked: 297 time(s) in 250 post(s)
|
Håvard, could you send me such a title? Would like to try it with SmartTitler.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/17/2013(UTC) Posts: 173 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.
|
1 user thanked Thremir for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 2/18/2014(UTC) Posts: 1,837 Location: Stockholm
Thanks: 144 times Was thanked: 297 time(s) in 250 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 ",").
|
|
|
|
Rank: Member
Groups: Registered
Joined: 5/4/2015(UTC) Posts: 26 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
|
|
|
|
vMix Forums
»
General
»
Feature Requests
»
Be able to set opacity in a title element
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