ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud Debate

Re: Expression to display keyframe values?

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: Expression to display keyframe values?
by on Feb 15, 2012 at 9:16:07 pm

Using a text layer source text expression, you can format it however you want. For example, you could track Layer 1's position property like this:

myProp = thisComp.layer("Layer 1").transform.position;
"X = " + myProp[0] +"\rY = " + myProp[1]


To get a manageable number of decimal places, you could add toFixed(), like this:


myProp = thisComp.layer("Layer 1").transform.position;
"X = " + myProp[0].toFixed(1) +"\rY = " + myProp[1].toFixed(1)



Dan



Posts IndexRead Thread


Current Message Thread:





© 2016 CreativeCOW.net All Rights Reserved
[TOP]