Skip to main content
anastasiam
Inspiring
August 10, 2017
Answered

Applying a gradient across multiple paths destroys widths

  • August 10, 2017
  • 1 reply
  • 2305 views

Hello!  I am re-drawing a logo for someone, and have re-drawn using the line tool, pen tool, and a few shapes where I cut off an edge or two to get the shapes I want.

I want to apply a gradient across all the paths.  In the below image, you can see how the dark to light green gradient is applied to the stroke of each path individually.  Also note that some lines have had the Width tool applied to them (like the fronds/edges of the 'snowflake' and the bit under the snowflake pointing down that also forms the top of the mountain).

If I select all the green lines, right click and 'Make Compound Path', the gradient is applied across all the lines as I want - but the width effects are destroyed.  For instance, the pointy part is no longer pointy.

How can I apply the gradient across multiple paths and still preserve the width effects?  Any ideas or suggestions on how to approach this would be greatly appreciated.  Thank you!

This topic has been closed for replies.
Correct answer Monika Gause

A compound path can only have one appearance across all objects (that's why the gradient works acros all the objects).

So what you can do is either: outline all your strokes (but then they are not easily editable anymore)

or

Draw a rectangle that has the gradient, color all your strokes black (RGB 000), group them and apply that as an opacity mask to the rectangle. You might need to experiment with the masking and invert settings in the transparency panel.

1 reply

Monika Gause
Community Expert
Monika GauseCommunity ExpertCorrect answer
Community Expert
August 10, 2017

A compound path can only have one appearance across all objects (that's why the gradient works acros all the objects).

So what you can do is either: outline all your strokes (but then they are not easily editable anymore)

or

Draw a rectangle that has the gradient, color all your strokes black (RGB 000), group them and apply that as an opacity mask to the rectangle. You might need to experiment with the masking and invert settings in the transparency panel.

anastasiam
Inspiring
August 11, 2017

Outlining the strokes was a good solution for this particular project.  Thanks so much for your help, Monika!