ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: control path length using expressions

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Dan Ebberts
Re: control path length using expressions
on Sep 6, 2019 at 3:57:50 pm

Just a thought--one possibility would be to use pointOnPath() to get the approximate distance along a tiny portion of each path so you can compare them:

d1 = length(path1.pointOnPath(.001,time),path1.pointOnPath(0,time));
d2 = length(path2.pointOnPath(.001,time),path2.pointOnPath(0,time));

Then the ratio of d1 to d2 should give you what you need to control the trim paths, maybe?


Dan



Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]