Page 1 of 1

Use interior of path object as a mask

PostPosted: Fri Nov 26, 2021 11:07 pm
by Rutvik
I have the following SVG of an eye that I want to animate in Fusion:

https://i.imgur.com/JJK2uJl.png

The outer border of the eye is a path that I want to animate moving up and down so that I can make a blinking animation. I also want to move the iris around so that the eye can "look around". To make it look how it's supposed, I need the border path to mask everything inside it, i.e. everything in the eye. Unfortunately I'm having trouble trying to get this setup.

I could use a separate mask node in the shape of the eye, but it'd have to animate perfectly with the border path; any slight deviation and it'll look bad.

There's an option to make the border path solid but that fills it in.

Is there any way to tell Fusion to mask the interior of a path?

Re: Use interior of path object as a mask

PostPosted: Sat Nov 27, 2021 12:07 am
by Sander de Regt
If I understand you correctly. You can use an instanced copy of your path object, with the 'filled' option selected (which means you have to deinstance the 'filled' checkbox) that way the shape will automatically be the same as the one you're animating. You can also feed the original mask into for example a rectangle mask set to 'invert' and it will give you an inverted version of the same path, so you can use that to cover up the eye.

Re: Use interior of path object as a mask

PostPosted: Sat Nov 27, 2021 12:49 am
by Rutvik
Amazing! That was exactly what I needed. Cheers! :)