Copy link to clipboard
Copied
My end goal is to determine the length or total distance traveled of a layer's motion path. Before I abandon my current approach, I wanted to find out if I'm missing anything that I may be able to leverage given the new Path properties and functions introduced in CC18.
So far it doesn't look like there is a method in place for this because the motion path itself does not appear to be exposed to expressions - unlike an actual shape path, which can be referenced as a property of that Shape layer or Mask. The methods for referencing "Points" along those paths seams pretty well documented.
Figured I'd ask, thanks!
Stephen
Copy link to clipboard
Copied
You're not missing anything. Since the path itself isn't necessarily persistent and can be modified by other parameters, there's no built-in way to glean its length so far. You have to write your own code. The simplest way would be to use valueAtTime() and integrate the position difference between frames. Of course feel free to re-create the entire Bèzier formula if you need ultimate precision and feel inclined.
Mylenium
Find more inspiration, events, and resources on the new Adobe Community
Explore Now