Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to get the pixel value height and width of an object that has been scaled

  • How to get the pixel value height and width of an object that has been scaled

    Posted by Ryan Paterson on January 4, 2012 at 6:14 am

    I’m just trying to see how big a solid is after having been scaled down so i made a text layer with an expression in the “Source Text” parameter-

    thisComp.layer(“SizeTest”).height

    but all it will tell me is the original height of the solid before scaling. I’ve never used the “Layer Space Transforms” parameters of the expression code before, but it seems like that’s what’s needed. am I correct in assuming this?

    Ryan Paterson replied 14 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 4, 2012 at 7:05 am

    Try this:

    height*transform.scale[1]/100

    Dan

  • Ryan Paterson

    January 4, 2012 at 9:22 pm

    Works like a charm! The math behind that makes zero sense to me at all unfortunately, but I guess that’s why I got into design and not programming

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