Adobe After Effects Forum
Creating complex dynamic masks
Creating complex dynamic masks
by Liam Pope on Jun 24, 2019 at 6:36:29 am


I have created this wireframe overlay using a solid layer with many instances of the beam effect to generate the wires, which is tracked to the motion of the person.

I intend on using this effect in footage with multiple people standing in front of one another, however I do not want the wireframes in the back to be visible through the spaces of the foreground wireframe layer.
I am curious if anyone knows of a method to generate a mask that occludes everything "inside" the beams?
It will need to animate with the motion of the wireframe.

Thankyou for your help!

Re: Creating complex dynamic masks
by Kalleheikki Kannisto on Jun 24, 2019 at 7:40:29 pm

Mask points should be movable with nulls these days (I haven't tried, but recall reading that), so you can create multiple masks of suitable shape (mostly triangles) and attach the corner points to nulls that follow those tracked points. And use those masks to hide things.

Kalleheikki Kannisto
Senior Graphic Designer

Re: Creating complex dynamic masks
by Liam Pope on Jun 25, 2019 at 12:13:29 am

I was hoping to avoid rotoscoping if possible for this project.

Thanks for the tip Kalleheikki, I found a solution similar to what you described.

What I did was create a shape layer and draw the points in 2D space to roughly match the 3D nulls controlling the wireframe layer.
I found a tool "create nulls from paths" which generates nulls for each point of the shape layer, with each point then following the nulls.
I then made these shape layer nulls 3D layers, snapped them to the positions of the wireframe nulls, and parented them so that they copy the transforms.

As my shape layer points follow the shape layer nulls, and the shape layer nulls follow the wireframe nulls, the shape layer accurately matches the outline of the wireframe.