ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud

Re: Calculate distance on one axis?

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 EbbertsRe: Calculate distance on one axis?
by on Jul 27, 2012 at 4:47:24 pm

I still not sure I get it, but let's start with this. If the first two nulls are at comp positions p1 and p2, the point halfway between them would be: (p1 + p2)/2

The y distance between them would be: Math.abs(p1[1] - p2[1])

Does that help at all?

Dan



Posts IndexRead Thread 


Current Message Thread:





© 2016 CreativeCOW.net All Rights Reserved
[TOP]