Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Eric Sanderson on October 20, 2008 at 9:39 pm

    I know ive seen it somewhere but i cant find it at the moment, but im trying to link numers to a keyframed layers velocity.

    i have an icon representing a person(position keyframed layer), and a heart icon with “bpm…” i just wanted to retrieve the velocity of that movement to represent the heart bpm, to an extent, i can adjust the number to be more accurate if i can just figure out how to retrieve the info. thanks.

    Dan Ebberts replied 17 years, 6 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    October 21, 2008 at 2:46 am

    This will give you the velocity vector:

    thisComp.layer(“person”).transform.position.velocity

    but you probably really want speed instead of velocity:

    thisComp.layer(“person”).transform.position.speed

    Dan

  • Eric Sanderson

    October 21, 2008 at 4:03 pm

    oh, that easy huh. what is exactly the difference between what the speed and velocity gives you? And is speed in pixels per second?

  • Dan Ebberts

    October 21, 2008 at 4:16 pm

    speed is in pixels per second. Velocity is a vector that has direction and magnitude. You can use length() to extract speed from velocity, but it’s an extra step. If you don’t care what the direction is, speed is what you want.

    Dan

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