<p>I ran into this issue, and unfortunately my vector images didn't have the resolution I needed and everything was already animated. I needed to scale everything, including the brush size, while keeping the continuously rasterize option ON.</p>
<p>This is a workaround if you are in trouble. But of course the best solution is to start with the right resolution.</p>
<p>I created a Null named Scale_All and parented all the vector layers to it.</p>
<p>Leave the Null at 100% scale before applying the expression. you will be able to change it when the expression is applied.</p>
<p>I left the continuously rasterize option ON</p>
<p>On all the Stroke effects, I used this expression on the brush size:</p>
<p>value*thisComp.layer(&quot;Scale_All&quot;).transform.scale[0]/100</p>
<p>This expression links the brush size to the X Scale value of the null.
I saved 2 days of animation with this simple expression.</p>
<p>(&quot;Scale_All&quot;) should be the name of the null you use to scale everything.</p>
<p>Hope this helps others in the future.</p>

CC BY-SA 4.0
2022-04-18T02:20:17.390Z
2022-04-18T02:20:17.390Z
Marie-Pier Auger
<p>Easy fix, you see the small sun icon on the imported comp layer? Disable that, that basically means that the comp should act like the layers within it should act like they are in the parent comp. It negates the transformation your are applying to it and the effect will just keep its pixel value its supposed to have, you are not "blowing it up" like you would expect.
If you disable it the imported comp will act like a rendered video.</p>

<p>If you have huge pixelation going on just go to full resolution in the preview and it will be fine, though the layer will not act like a vector, you will have a rasterized image so keep in mind to have a big enough resolution if you want to scale it up.
Better to have it bigger and scale it down than having not enough.</p>

<p><img src="https://i.sstatic.net/Ned9M.png" alt="enter image description here"></p>

CC BY-SA 3.0
2014-06-04T17:33:30.590Z
That sounds like it'd work alright. Reason I'm using 100x100 is because I'm creating a library of animated icons. Since they're all vector though, creating them at much higher resolutions (something like 2000x2000) won't affect filesize/performance, will it?
Chris Langford
CC BY-SA 3.0
2014-06-04T17:34:53.257Z
It won't effect the after effects project file size. If you render a video at that resolution it will certainly effect the file size of the video.

Performance shouldn't drop all that much as long as you don't do all too fancy stuff with your vector graphics. If you just do some animations you wont see all that much diffrence.
timonsku
CC BY-SA 3.0
2014-06-04T17:36:10.880Z
Right, right. I'm just concerned with the project file. Thanks!
Chris Langford
CC BY-SA 3.0
2014-06-04T17:31:04.353Z
2014-06-04T17:31:04.353Z
timonsku
<p>I've got a 100x100px composition with a Mask containing a Stroke effect used to animate the drawing of a vector. The problem I'm having is when I drop this composition into a larger one and attempt to scale it up, the Brush Size in Stroke remains the same (e.g. the graphic is drawn with thin lines, instead of the thicker looking ones in the smaller comp). </p>

<p>I'm thinking some sort of expression magic might be the fix to this, but any input on how to maintain line thickness at any resolution/scale would be much appreciated. Thanks!</p>

<p><strong>EDIT:</strong> I've attached a small demo project showing the issue I'm running into below:
<a href="http://hellocld.com/stuff/stroke-issue.aep" rel="nofollow">http://hellocld.com/stuff/stroke-issue.aep</a></p>

CC BY-SA 3.0
2014-06-04T16:46:25.263Z
I can not reproduce that behavior. What version of After Effects are you using (always important to mention btw.)?
timonsku
CC BY-SA 3.0
2014-06-04T16:48:10.430Z
I'm currently using CS5
Chris Langford
CC BY-SA 3.0
2014-06-04T16:49:45.263Z
Ok so the problem is that the stroke effect isn't scaling when you scale the imported composition?
timonsku
CC BY-SA 3.0
2014-06-04T16:52:21.163Z
That's correct. As I scale the imported composition all the paths scale appropriately, but the "Brush Size" setting on the Stroke effect remains at it's initial setting, so the stroke it displays appears thinner.
Chris Langford
CC BY-SA 3.0
2014-06-04T17:14:31.940Z
Could you upload a simple demo file that shows the issue?
I kind of suspect that is might be a bug in CS5 as this doesn't seem to happen in CS6.
timonsku
CC BY-SA 3.0
2014-06-04T17:23:23.583Z
Can do! Just added a link to it in the question above.
Chris Langford
<after-effects><after-effects-expressions>
Scaling "Stroke" Effect "Brush Size" while scaling composition?
Chris Langford
# Scaling "Stroke" Effect "Brush Size" while scaling composition?

(Asked by: username_0 on 2014-06-04)

I've got a 100x100px composition with a Mask containing a Stroke effect used to animate the drawing of a vector. The problem I'm having is when I drop this composition into a larger one and attempt to scale it up, the Brush Size in Stroke remains the same (e.g. the graphic is drawn with thin lines, instead of the thicker looking ones in the smaller comp).

I'm thinking some sort of expression magic might be the fix to this, but any input on how to maintain line thickness at any resolution/scale would be much appreciated. Thanks!

**EDIT:** I've attached a small demo project showing the issue I'm running into below:
<http://hellocld.com/stuff/stroke-issue.aep>

**Tags:** after-effects, after-effects-expressions

> **Comments:**
> **username_1**: I can not reproduce that behavior. What version of After Effects are you using (always important to mention btw.)?  
> **username_0**: I'm currently using CS5  
> **username_1**: Ok so the problem is that the stroke effect isn't scaling when you scale the imported composition?  
> **username_0**: That's correct. As I scale the imported composition all the paths scale appropriately, but the "Brush Size" setting on the Stroke effect remains at it's initial setting, so the stroke it displays appears thinner.  
> **username_1**: Could you upload a simple demo file that shows the issue? I kind of suspect that is might be a bug in CS5 as this doesn't seem to happen in CS6.  
> **username_0**: Can do! Just added a link to it in the question above.  

---

## 2 answers

### Answer by username_1 on 2014-06-04. Score: 3 | Accepted answer

Easy fix, you see the small sun icon on the imported comp layer? Disable that, that basically means that the comp should act like the layers within it should act like they are in the parent comp. It negates the transformation your are applying to it and the effect will just keep its pixel value its supposed to have, you are not "blowing it up" like you would expect.
If you disable it the imported comp will act like a rendered video.

If you have huge pixelation going on just go to full resolution in the preview and it will be fine, though the layer will not act like a vector, you will have a rasterized image so keep in mind to have a big enough resolution if you want to scale it up.
Better to have it bigger and scale it down than having not enough.

![enter image description here](https://i.sstatic.net/Ned9M.png)

> **Comments:**
> **username_0**: That sounds like it'd work alright. Reason I'm using 100x100 is because I'm creating a library of animated icons. Since they're all vector though, creating them at much higher resolutions (something like 2000x2000) won't affect filesize/performance, will it?  
> **username_1**: It won't effect the after effects project file size. If you render a video at that resolution it will certainly effect the file size of the video.  Performance shouldn't drop all that much as long as you don't do all too fancy stuff with your vector graphics. If you just do some animations you wont see all that much diffrence.  
> **username_0**: Right, right. I'm just concerned with the project file. Thanks!  

---

### Answer by username_2 on 2022-04-18. Score: 0

I ran into this issue, and unfortunately my vector images didn't have the resolution I needed and everything was already animated. I needed to scale everything, including the brush size, while keeping the continuously rasterize option ON.

This is a workaround if you are in trouble. But of course the best solution is to start with the right resolution.

I created a Null named Scale\_All and parented all the vector layers to it.

Leave the Null at 100% scale before applying the expression. you will be able to change it when the expression is applied.

I left the continuously rasterize option ON

On all the Stroke effects, I used this expression on the brush size:

value\*thisComp.layer("Scale\_All").transform.scale[0]/100

This expression links the brush size to the X Scale value of the null.
I saved 2 days of animation with this simple expression.

("Scale\_All") should be the name of the null you use to scale everything.

Hope this helps others in the future.


---

