Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects expression that link with speed of motion

  • expression that link with speed of motion

    Posted by Ryan Chan on December 15, 2005 at 7:58 pm

    hello guys, i would like to know how can i use expression to control the rotation value by the change of speed in position(3D), say if there is no change in position, the rotation value will be 0, the faster the change(speed of motion), the greater the rotation value, just like a speedometer. thanks

    ryandrew

    Dan Ebberts replied 20 years, 5 months ago 3 Members · 5 Replies
  • 5 Replies
  • Dan Ebberts

    December 15, 2005 at 9:17 pm

    Something like this should work:

    mult = 1.0;
    thisComp.layer(“your layer”).position.speed*mult

    Adjust “mult” to get the relationship you want.

    Dan

  • Andy Stokes

    December 16, 2005 at 4:05 am

    Hi Ryan / Dan,

    As an addition to this is there anyway you might be able to set the rotation to return to 0 (with damping) when there is no movement ?

    i.e rotate whilst moving, then once stops return to 0 ?

    Cheers,
    Andy

  • Dan Ebberts

    December 16, 2005 at 5:56 am

    The expression works like a speedometer – as the moving layer slows down, the rotation returns to zero. When the moving layer is at a constant velocity, the rotating layer stops rotating at some value away from zero.

    It sounds like you may after something entirely different. Do you want the rotation speed of one layer related to the positional speed of the other layer?

    Dan

  • Andy Stokes

    December 16, 2005 at 6:22 am

    Hi Dan,

    Actually I saw the last post and experimented with having one layer moving across the screen linked to the rotation of another layer. I was wondering if there was a way to have the rotating layer spin more when the position is fast, then if the object stops rotates back to 0 degrees with damping ?

    I guess this is quite different, but I was just curious…

    Regards,
    Andy

  • Dan Ebberts

    December 16, 2005 at 2:15 pm

    Yeah, now you’re into one of those areas that expressions are not particulary well suited for. You’d need an expression that integrates the speed of the other layer’s movement. Doable, but kind of a pain.

    Dan

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