Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Dynamic y position offset based on distance from a specific point

  • Dynamic y position offset based on distance from a specific point

    Posted by Francis De la torre on August 26, 2009 at 9:10 pm

    Hello,
    I have a bit of a unusual expression I am trying to develop for the y position on several layers.

    The end result is a scrolling text menu, with a fixed focus on the center of the menu (not center of comp). There are several text fields that a user can scroll through, as the highlighted text field comes to rest on the fix focus point it scales up. It then scales back down as it moves away from the fix focus point. I have achieved the “dynamic scaling” effect using an expression developed by Mylinium, Dan Ebert and a couple other guys on the forum. Here is what I am piping into my scaling attribute on my text layers

    f =2.2;
    min = 0;
    max = 150;
    c = [[thisComp.width / 2], 378];
    p = toComp(anchorPoint);
    d = Math.abs((p – c)[1]);
    ease(d, min, max, f * value, value);

    //comp size 800*480

    the problem is, when the text fields scale up, they overlap each other, making them obscured, and difficult to read. I need not to develop an expression that will allow a “dynamic offset” on the “y-position” to spread them out as they reach their maximum scale, then reverse the offset as they move away from the “fixed focus point,” returning them to the original “y offset.”

    Just think of a scaling rolling menu (similar to coverflow, but without rotation and a z-space push; plus they move along the y axis instead of the x)

    Any help would be wonderful. Thank you in advance.

    f =2.2;
    min = 0;
    max = 150;
    c = [[thisComp.width / 2], 378];
    p = toComp(anchorPoint);
    d = Math.abs((p - c)[1]);
    ease(d, min, max, f * value, value);

    //comp size 800*480

    Francis De la torre replied 17 years ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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