Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions linear wipe with stroke

  • linear wipe with stroke

    Posted by Guillaume Charron on August 7, 2009 at 5:43 pm

    Hi everybody!!
    My problem…
    I want to make a simple linear wipe… but with a stroke on the edge (without adding mask and/or another layer to make the stroke).

    I played around with the grid effect and the linear wipe effect. But the linear Wipe effect does not have a position control tool, it is a percentage. So, as you guest, I tried to link one to the other… and it’s not working. I have to, I think, translate the percentage into position.

    Can you help me?

    Thanks.

    Brie Clayton replied 2 weeks, 2 days ago 5 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    August 7, 2009 at 6:25 pm

    How about using the beam effect with this expression for the beam’s Starting Point:

    pct = effect(“Linear Wipe”)(“Transition Completion”);
    x = width*pct/100;
    [x,0]

    And this for its Ending Point:

    pct = effect(“Linear Wipe”)(“Transition Completion”);
    x = width*pct/100;
    [x,height]

    You also need to set the beams length to 100%

    Dan

  • Filip Vandueren

    August 7, 2009 at 8:41 pm

    It gets a bit more difficult when you decide to rotate the angle or add softness etc.

    Here’s an alternative without expressions:

    -Linear Wipe
    -Solid Composite: Set the color to the color of your border, But Set Opacity to 50%
    – Minimax: Operation: Maximum, Radius: 8 (=border width), Channel=Alpha
    – Alpha Levels: Input Black Level=128

    Okay, now you can use the direction and even the feathering of the wipe to adjust the feathering of the border.

    Also these 3 effects work together after any wipe, so you can use this to add a border to an iris wipe, a radial wipe, or even an animated mask. Basically everything that alters the alpha of the layer get’s a border. So this won’t work well on footage that allready has an alpha.

    Come to think of it, you can achieve a very similar effect by just adding a Layer Styles -> Stroke, only without it responding to the feather.

  • Manuel Lino

    April 27, 2025 at 2:01 pm

    As Filip Vandueren recomended, adding a Layer Styles -> Stroke worked out perfectly for me!

  • Brie Clayton

    April 27, 2025 at 2:03 pm

    Thanks for the solve, Filip!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy