Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Water-like movement

  • Water-like movement

    Posted by Long Nguyen on November 24, 2020 at 4:45 pm

    Hi, I have these 2 dots here and I wonder how to use expression to create movement as:

    • The white dot will move freely around the comp, but will never be able to touch or overlay and/or being away from the red dot with an editable amount of pixels. (e.g. 50 pixels)
    • The red dot can also move freely around the comp, but when the red dot moves, within an amount of distance (e.g. from 50 to 100 pixels) between the two, it drags the white dot along. When the red dot crosses that amount (e.g. > 100pixels), the white dot will stop following. (it’s like when an object moves on a water surface, the flow will drag another object into the same direction)

    Filip Vandueren replied 5 years, 8 months ago 3 Members · 2 Replies
  • 2 Replies
  • Trent Armstrong

    November 25, 2020 at 1:53 am

    Long,

    I’m sure this is not what you want to hear, but I think you would need to use some other kind of program to get this kind of result. As Dan Ebberts says: After Effects can only calculate expressions on a per frame basis. So trying to write code for the expression to figure out where something was and will be later are pretty tough. It’s maybe possible to do some keyframing of expected motion and use DuIK tools Effector to have the motion kind of “simulate”.

    Or maybe you could use something like Character Animator and then render that to a movie for AE.

  • Filip Vandueren

    November 25, 2020 at 12:46 pm

    I haven’t tried it yet, but maybe this library can help:

    https://github.com/motiondeveloper/eTractors

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