Clipping Widgets

Posts: 785
Starting in version 1.29.8, you can use Clipping to partially clip the visibility of Widgets.

When clipping is enabled on a Widget, only the region of the Widget within the clipping rectangle will be visible. Anything outside of the clipping rectangle will be clipped (hidden).

You can define the clipping rectangle using coordinates (Left, Top, Width, Height measured with respect to the overlay window), or by selecting another Widget to act as the 'Clipping Widget'. When you select a clipping widget, the boundaries of the clipping widget define the visible region of your widget.


Clipping in Theme Editor
Please note: clipping will only work visually when running the theme in ATVO. The Theme Editor overlay editor will not show the clipping in action.


Example setup
In this example I intend to clip Widget1 (the image) to be only visible when it is inside Widget2 (the red rectangle). Widget1 is moving back and forth with an animation.

In the properties of Widget1, find the Display - Clip group. Then enable clipping and select Widget2 as the Clipping Widget. Optionally, you can manually define the rectangle to be clipped via the Left, Top, Width, Height coordinates.

The widgets in the editor:


The properties of Widget1 show how clipping is enabled:


The result is that only the area of Widget1 within Widget2 is visible:



Note that Widget2 does not need to have any visible elements, I just use the border in this case to make it clear where Widget2 is positioned. You can totally hide Widget2, it merely defines the boundaries where Widget1 will be clipped.
Edited (3 times)
Posts: 785
Please test this feature extensively and check for widgets that are out of place or sized wrong, or other unintended side effects.

Also if you are using NDI v1 (not the new NDI Recorder), please check if this change has any impact on performance. Is your theme slowing down more on version 1.29.8 even when you are not using clipping? Please do a back-to-back test with the Stable channel.
Posts: 287
I do a test to use Widget as Clip, and I add Opacity Mask to the Widget use as clip. But the opacity mask is not use.
Do you think it is possible to add that later ?
Posts: 785
Was your intention to have a clipping shape that is not rectangular? That will not work at the moment. I can see if I can add non-rectangular clipping in the future, but it is different to the approach I took now.
Posts: 287
Yes I try to make appears a non rectangular forms and I don't want to have a vertical cut.
Posts: 287
I supposed we can move Mask Widget to show parts, but no. Is it a Bug ?
Just let image to show static and move Mask?