FORUMS: list search recent posts

Set scale in pixels using expressions

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jeremy Paul
Set scale in pixels using expressions
on Aug 21, 2017 at 12:49:14 pm

You can right click on a scale, hit Edit, and then enter scale in Pixels, inches , % of Comp, of source.... How can set the units using expressions?

They default to percentages of source (I think) which is somewhat limited.


Return to posts index

Walter Soyka
Re: Set scale in pixels using expressions
on Aug 25, 2017 at 7:30:15 pm

[Jeremy Paul] "They default to percentages of source (I think) which is somewhat limited."

That's correct. You'll have to do the math to convert from your desired pixel size to scale percentage of original. Here's an expression you can apply to a 2D scale property that lets you input in the scale in pixels directly into the scale property on the timeline without opening the dialog box:

[value[0]/sourceRectAtTime().width*100, value[1]/sourceRectAtTime().height*100]

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

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