ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Scale shape stroke width between comps

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jordan Best
Scale shape stroke width between comps
on Sep 19, 2017 at 7:43:43 pm

I have a library full of corporate icons. Each icon is in an individual comp (500x500px) that I've animated and added a stroke to (they're mainly shape layers). When I create videos, I drag these icon comps into a 1080 comp and scale them as needed. The problem I'm running into is getting the strokes to scale proportionally.

I've added the following expression to the icons' stroke width, which is linking to the 1080 comp's scale. But if I scale the icon comp below ~90% or larger than ~400% the stroke gets too fat/too thin. Is there a better way to do this?

s = comp("1080 comp").layer("icon precomp").
transform.scale[0];
scaleFactor = 100/s;
value*scaleFactor


Return to posts index

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