Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-04-18T02:20:17.390Z
Answers.LastActivityDate: 2022-04-18T02:20:17.390Z
Answers.UserDisplayName: Marie-Pier Auger
Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-04T17:33:30.590Z
Answers.Text: 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?
Answers.UserDisplayName: Chris Langford
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-04T17:34:53.257Z
Answers.Text: 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.
Answers.UserDisplayName: timonsku
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-04T17:36:10.880Z
Answers.Text: Right, right. I'm just concerned with the project file. Thanks!
Answers.UserDisplayName: Chris Langford
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-04T17:31:04.353Z
Answers.LastActivityDate: 2014-06-04T17:31:04.353Z
Answers.UserDisplayName: timonsku
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-06-04T16:46:25.263Z
Comments.Text: I can not reproduce that behavior. What version of After Effects are you using (always important to mention btw.)?
Comments.UserDisplayName: timonsku
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-06-04T16:48:10.430Z
Comments.Text: I'm currently using CS5
Comments.UserDisplayName: Chris Langford
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-06-04T16:49:45.263Z
Comments.Text: Ok so the problem is that the stroke effect isn't scaling when you scale the imported composition?
Comments.UserDisplayName: timonsku
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-06-04T16:52:21.163Z
Comments.Text: 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.
Comments.UserDisplayName: Chris Langford
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-06-04T17:14:31.940Z
Comments.Text: 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.
Comments.UserDisplayName: timonsku
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-06-04T17:23:23.583Z
Comments.Text: Can do! Just added a link to it in the question above.
Comments.UserDisplayName: Chris Langford
Tags: <after-effects><after-effects-expressions>
Title: Scaling "Stroke" Effect "Brush Size" while scaling composition?
UserDisplayName: Chris Langford
ThreadText: # 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.
  
  
  ---
  
  