FORUMS: list search recent posts

I need numeric Counter (feet and inches) linked to vertical position of Null

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
justin rogers
I need numeric Counter (feet and inches) linked to vertical position of Null
on Sep 21, 2015 at 2:00:41 pm

Anyone know how to express a numerical counter (in feet and inches i.e. 5'11") that links to the vertical position of a movable Null?

So, as you move the Null up the screen the feet number increases by 1 every time the inch number zeros out at 14? And as you move the Null down it decreases.

Appreciate the help.


Return to posts index


Dan Ebberts
Re: I need numeric Counter (feet and inches) linked to vertical position of Null
on Sep 21, 2015 at 4:45:41 pm

Something like this, probably:

p = thisComp.layer("Null 1").transform.position;
inches = linear(p[1],0,1334,96,36);
"" + Math.floor(inches/12) + "'" + Math.floor(inches%12) + '"'


Dan



Return to posts index

justin rogers
Re: I need numeric Counter (feet and inches) linked to vertical position of Null
on Sep 21, 2015 at 5:02:15 pm

Thanks Dan, worked like a dream!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]