ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

constant stroke weight on...everything?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Steve McCarthyconstant stroke weight on...everything?
by on Nov 2, 2016 at 11:25:34 am

Hello, I've tried searching everywhere for this but I'm getting nowhere. I'm creating a line-art style animation and I'm wanting to keep a constant stroke weight on everything (that has a stroke). I'm aware of ways to do it for individual items but because I'm parenting things to null objects, those techniques don't seem to work. As the null object scales, the stroked objects are shrinking as you'd expect, but I want all stroke weights of all objects to stay constant. here's a quick render of how it looks now.
Any ideas?

Return to posts index

Dave JacksonRe: constant stroke weight on...everything?
by on Nov 2, 2016 at 12:03:51 pm

shape layers right?
This works for me:
content("Stroke 1").strokeWidth/(thisComp.layer("Null 1").transform.scale[0])*100

To implement:
set an expression on the Stroke Width, then add a /
then pick whip the x value of your parented null
and finally add a *100

Return to posts index

Steve McCarthyRe: constant stroke weight on...everything?
by on Nov 3, 2016 at 9:29:47 am

That works perfectly! Thanks a lot!

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 All Rights Reserved