Skip to main content
Inspiring
December 28, 2017
Answered

Sliding Doors

  • December 28, 2017
  • 3 replies
  • 1163 views

Hi -

I'd like to create some sliding doors which will open and close in the middle, revealing and hiding the compositions behind them.

I'd like these to open side to side, and then top to bottom, maybe at an angle as well, and finally as four corner pieces closing in the middle.

When using 2d layers, I can simply draw a mask down the middle and cut a single rectangle into two perfectly interlocking sides - whether I'm using a straight line or creating a jagged edge with interlocking angles or teeth. 

The problem is I'd like to have some thickness to the doors as well, which would require making layers 3d so I can extrude them.

I tried doing this with Shape layers and setting to 3d, but can't seem to mask those.

And if I put the 3d shape layer into a precomp so i can mask it, i seem to lose the extrusion.

May try this in cinema 4d lite, but would like to know if there's a way to do this within After Effects itself (and if i'm just messing up some simple step)

Thanks for any suggestions.

    This topic has been closed for replies.
    Correct answer P.M.B

    Why are you stuck on using masks when you can do the same process on shape paths?

    You're adding an extra step that has the added benefit tying one hand behind your back.

    Let it go. Forget masks.

    Draw out the first shape.

    Duplicate it and drag the outer verts to the other side

    You've got your two perfectly interlocking shapes that you can extrude.

    3 replies

    Participant
    June 2, 2023

    Windows 

    Community Expert
    November 16, 2022

    You could do the whole thing with one shape layer, a few expressions, and some expression control sliders. Check this out:

    Here's the animation preset. Just apply it with no layer selected. 

    I already had it and just gave it a few tweaks to update it.

    Dave_LaRonde
    Inspiring
    December 28, 2017

    Oh, screw the shape layers!  Use solids.  Big honkin' ones.  And a null.

    You only have to set up the animation ONCE.  Begin with both solids, edge-to-edge at center screen.  Parent them to the null, also at center screen.  Then animate the horizontal position of both the solids.  Done.

    Want to use the animation again?  Copy the 3 layers & paste them, then move them in the timeline.  Want the animation at a different angle?  Rotate the null.

    reindeer4Author
    Inspiring
    December 28, 2017

    The problem with just using solids is that even if I turn them into 3d layers, I can't extrude them- thus I can't get any thickness to the sliding doors.

    Dave_LaRonde
    Inspiring
    December 28, 2017

    Those are the details that it's wise to divulge from the get-go.