Using clear filter as a trimming tool for shapes (trick)

The KWGT lacks trimming option for shapes. It only clips the next module(s) shape which is out of it. The trimming is opposite (cuts the shape inside a shape). For now it can be achieved by using clear Filter under paint tab of the shape but it cuts throgh all shapes beneath it and do not allow you to make a background which is shown through that window. I was unable to find solution even after putting two shapes (the circle and red square) inside an overlap group. You can see below.

After a lot of attempts I found a trick (may be someone knows but not mentioned on internet anywhere). Put the two shapes in an overlap group, apply clear filter to the circle (the cutter), go back to overlap group, click Layer tab and change opacity to 99 instead of 100. Poooof its done. It only cuts through the shape beneath cutter shape and no visible opacity change happened. This is a trick. If anyone knows exact method for trimming like that let me know :blush:

Nice trick and thanks for sharing! The reason it works is that when the group opacity is not 100 the group is drawn on its own layer, so clear only cuts what is inside that group and not what is behind it

Hi @Mkkminhas , @frank :

I tried this trick on KLWP and KWGT, and it works only in KWGT. I haven’t tried on KLCK but I believe it’s has the same result as in KLWP.

In KLWP, setting the opacity of the Overlap Group to either 99% or 100% has the same result, it shows the cut of what’s inside the Overlap Group.

I hope this would help.

:smiling_face::+1:

Thanks for testing it Baju! Yes that is expected. In KLWP every item on the root is already drawn on its own layer, so clear never goes past the group and you don’t need the 99 trick there. In KWGT the whole widget is drawn on one image, that is why you need it there

Hoping that KWGT also gets this.

Good point, I added it to my list. Until then the 99 trick works in KWGT, and if you put the items inside a Komponent the clear stays inside it too, since a Komponent draws on its own layer