I have created many shapes with different colors when i tried to convert it into a compound path all the path converted into a single color.

How can I do that with compound path or some other tool?

  • Can you attach a screen shot or something and why do you want to convert it to compound path?
    – Rishab
    May 26, 2016 at 5:42
  • are you looking to group the thing.
    – joojaa
    May 26, 2016 at 6:58
  • No Actually I want to give a single gradient to all my paths @joojaa May 27, 2016 at 8:38
  • Actually I want to give a single gradient to all my paths@Rishab May 27, 2016 at 8:39
  • @ChenthuranChen then just apply the gradient to selection anw use gradient tool to set the gradient. There is no need to combine anything when you do this.
    – joojaa
    May 27, 2016 at 10:05

1 Answer 1


You can't. A compound path is treated as one single path, that's the whole point of a a compound path.

Any fill, stroke, effect or anything applied to your compound path is applied to the whole compound path, not just one sub path.

If you want to color part of your compound path differently you will need to duplicate the parts you want to color as new paths... But then you may as well not bother converting it to a compound path in the first place.

  • Yeah Actually your point is right. But If i want to use a single gradient to all my shapes. what would be the solution? May 27, 2016 at 8:43
  • If you want to use a single gradient across all the shapes then a compound path is what you want
    – Cai
    May 27, 2016 at 9:18
  • actually I want the shapes to be in different colors and i want a fade out effect among those shapes using single gradient with 0% opacity on the left and 100% opacity on the right. The non faded shapes should be in different colors. @cai May 27, 2016 at 10:15
  • If I understand you correctly the best way would be to color your shapes separately and group them, then duplicate the group and convert the duplicate to compound path and set the transparent gradient to that
    – Cai
    May 27, 2016 at 11:29

Not the answer you're looking for? Browse other questions tagged or ask your own question.