Groups inside compound paths
Today I'm going to bring you awareness to the way Illustrator treats groups in compounds.
For me it sounds strange already — why would I want a group inside of a compound path?
What would I use it for?
Ai won’t allow me to go isolate this group to edit its components.
Ai would not show it in the Layers tree —for some reason we can’t expand a compound path to see its children, like we can do with the groups.
Ai won’t give scripts a way to see these groups inside of compound paths — and this leads to problems when you have to cycle through a path’s children.
Still, Ai allows to create groups in compounds.
The very first option, when you select a group and command Create Compound Path, is fixed — Illustrator ungroups it for us, it seems, and then creates a compound path — if you uncompound it, you would get objects ungrouped.
The second one is simple as that, but is not fixed.
Create a new compound path from two or more objects. Leave it.
Create a new group from whatever number objects. Cut it.
Isolate the first compound path. Paste the group in the compound path.
There you have it, a group in a compound path.
A script won’t see its children when because AI never tells it is a group and not just a first level child.
If you uncompound it, the group will be there.
You don’t have to isolate and paste to create these.
Ai just makes them occasionally.
Draw two rectangles, one atop another.
Select them both and grab Shape Builder.
Click the inner rectangle once and then click one more time, but with Alt held.
And now you have a compound path that is comprised from a group entirely.
So the problem is that Ai can’t treat these uniformly. It says both yes and no:
— Ai doesn't allow to naively create compounds from groups — no
— You can paste groups inside — yes
— You can't expand compounds in Layers tree or isolate them — no
— You can have these done with default tools — yes
— But scripts won't see them — no
Guess, dear user!
Please make this more predictable.
Make these legal and give tools to control OR make the impossible entirely and make sure they stay like it.
Which way to choose?
Which one you prefer and why?
Let’s discuss it.
This one also relates to more requests and reports, like this one:
Egor Chistyakov commented
I also offered AstuteGraphics to solve this problem with their VectorFisrtAid plugin, and they did it in A DAY.
Now it would be able to detect groups inside compound paths and fix them.
It does not mean that Illustrator team should not fix it, on the contrary.
Please vote for this, if you are agree.