Making Custom Effects – Linear Wipe Improved


    How to make a custom effect using expressions
    Project File:


    If you’re like me, you get annoyed sometimes when built-in After Effects effects are missing a feature that you want. For example, back in the day, the Ramp effect didn’t let you swap the colors. It was a pain that was eventually alleviated.

    That’s how I feel about Linear Wipe sometimes. So this week, I decided to improve it. Linear Wipe only works in comp space, which is great if your layers are comp-sized. But if you need to put a Linear Wipe on text and then you have a change that forces you to move the text, you’ll need to re-animate your wipe. That sucks.

    Here’s the code to fix it. It gets applied to a Mask Path property. I built a pseudo effect with Pseudo Effect Maker ( so all of the things that are linked with thisLayer will need to be modified for your controls. You’ll need Point Controls called Size and Position Offset, a Slider Controls called Completion and Feather, and an Angle Control called Angle.

    If you’re a $20 Patron, this will be one of the included complex elements for this month. The Feather value in the mask properties can just be pickwhipped to the controller for feather.

    Expression code is available on this page:

    The code for the rotation function was derived from this lesson on Khan Academy ( I can’t recommend them enough.


    Please enter your comment!
    Please enter your name here