Skip to main content
Known Participant
January 5, 2017
Answered

Measuring length of a curved path shape ?

  • January 5, 2017
  • 1 reply
  • 3805 views

Is it possible to measure the length of a curved shape (path) in after effects?

Illustrator has a built-in ability to measure stroke (curve lengths) so it seems like AE should have something similar.

This topic has been closed for replies.
Correct answer Mylenium

No, not natively, since expressions cannot access that data. You can do it with scripts or employ workarounds like copy&pasting the path to a motion path and integrating the distance between the waypoints.

Mylenium

1 reply

Mylenium
MyleniumCorrect answer
Legend
January 6, 2017

No, not natively, since expressions cannot access that data. You can do it with scripts or employ workarounds like copy&pasting the path to a motion path and integrating the distance between the waypoints.

Mylenium

Known Participant
January 13, 2017

Thanks, that makes sense. Is their a command in scripting that specifically does this?  I haven't explored this in great detail, but initially I haven't seen real great documentation on the commands specific to AE.

Are there custom commands or is it necessary to build up a function using raw Javascript?

Mylenium
Legend
January 14, 2017

No, there is no specific scripting command to return the length of a path. You still have to comb through the vertices and based on the interpolation info calculate this stuff using the Bezier formula.

Mylenium