ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

After effects Expressions - Increase Stroke Effect/Brush size with null

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jason Nizzetto
After effects Expressions - Increase Stroke Effect/Brush size with null
on Nov 11, 2019 at 2:43:42 pm

Hi all, this is my first question, hope you can help me with this and thank you in advance.

I'm doing an animation where I have some text (shape layers) that appear with a write-on reveal effect. To create this I imported the expanded text from Ai, created shapes from layers in Ae and applied a Stroke Effect (with paint style set to Reveal Original Image) to each separate layer (each letter); I then keyframed the End parameter of the effect so that the text appears.

The whole thing is pre-comped and part of another composition with a fly-through camera.

My issue started when this text pre-comp was losing sharpness due to the pre-comp being too small, so I resized pre-comp dimensions, created a null, linked each text layer to the null and increased this. By doing this, the Brush size of the Stroke Effect remains the same and the text gets all messed up.

I tried to create a slider for the null and pick whip the brush size to the slider, but that doesn't work.

My idea for making it work is to have the Brush Size increase by the same percentage value as the null's scale property, but I have no clue on how to do that.

I apologize if this explanation is confusing and I'll provide any other details if missing

Thank you very much

Return to posts index

Tomas Bumbulevičius
Re: After effects Expressions - Increase Stroke Effect/Brush size with null
on Nov 13, 2019 at 10:56:11 am

Hey Jason, assuming transformations are proportional, try to apply this to stoke:

nullScale = thisComp.layer("null").transform.scale[0];
textScale = thisComp.layer("text").transform.scale[0];
brushSize = 10; //Your default value for brush

brushSize * nullScale/textScale

Find out more:
After Effects Tutorials: motion design, expressions, scripting.
Boxer - Dynamic Text Boxes Template with a Live Preview

Return to posts index

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