Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Card Wipe effect – Static X,Y position based on different resolutions

  • Card Wipe effect – Static X,Y position based on different resolutions

    Posted by Dustin Novacek on October 4, 2019 at 8:12 pm

    I am making myself some animated presets using the card wipe effect. I created the preset in a 1080p comp. But when I use the preset in a 1080×1920 or 1080×1080 comp then whatever I apply the preset to becomes off center. Is there a certain expression that I can apply to the X,Y position under “camera position” to keep it centered regardless of what size comp I am using?

    Tomas Bumbulevičius replied 6 years, 7 months ago 3 Members · 3 Replies
  • 3 Replies
  • Tomas Bumbulevičius

    October 6, 2019 at 9:12 am

    Hey Dustin, try this, applying to XY position of effect:

    x = thisComp.width / 2;
    y = thisComp.height / 2;
    [x,y]

    Find out more:
    After Effects Tutorials: motion design, expressions, scripting.
    Boxer – Dynamic Text Boxes Template with a Live Preview

  • Dustin Novacek

    October 16, 2019 at 4:29 pm

    I tried that expression, it only works when the composition is divided by half. I had a composition with the resolution 1080×1920 and that expression made the layer alignment off center, I had to manually adjust the position values. I want to find a expression that will have the position point of the card wipe effect to stay aligned in the middle regardless of composition size.

  • Tomas Bumbulevičius

    October 18, 2019 at 2:16 pm

    Dustin – looks like its not really the case, unless I misunderstand the use case scenario.

    What happening here, is that once you change resolution, position stays properly fixed as per expression suggested, but what doesn’t – is the actual size of the layer, onto which this effect is applied.

    Accordingly, you need the following:
    1. Scale the ‘layer’ where effects is being applied to match resolution.
    2. Re-adjust cards sizes that they won’t get distorted, by composition sizes ratios.
    3. Make sure position of the layer is also stays properly centered (depending on the way you change comp sizes)

    Let us know whether it helps or how else this could be projected. Sharing .aep with preset applied to the layer would be a good go too.

    Find out more:
    After Effects Tutorials: motion design, expressions, scripting.
    Boxer – Dynamic Text Boxes Template with a Live Preview

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