Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions I need numeric Counter (feet and inches) linked to vertical position of Null

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

    Posted by Justin Rogers on September 21, 2015 at 2:00 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.

    Justin Rogers replied 10 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 21, 2015 at 4:45 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

  • Justin Rogers

    September 21, 2015 at 5:02 pm

    Thanks Dan, worked like a dream!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy