Copy link to clipboard
Copied
Is it me or does Illustrator 2020 no longer allow you to get the fill of path item 1 of compound path items? Path Items used to show up inside Compound Path Items
There could be a small chance that you may have one of the buggy groups inside a compound path, so there's actually not a single pathItem - until you de-compound it and un-group it. Some external software may produce such a faulty compound path structure when art from those apps is imported into Illustrator.
Copy link to clipboard
Copied
Can you show a screenshot that may explain what you mean?
Copy link to clipboard
Copied
You can access the fillColor of any of the pathItems in a compoundPathItem, e.g.
var paths = app.activeDocument.compoundPathItems[0].pathItems;
var c1 = paths[0].fillColor;
alert( c1.typename + ", C: " + c1.cyan + ", M: " + c1.magenta + ", Y: " + c1.yellow );
But the fillColor has but few properties to access, i.e. typename and the values of the components (CMYK or RGB).
Copy link to clipboard
Copied
it's you, that still works in 2020
Copy link to clipboard
Copied
Im not sure why but if I have a compound path made of several paths not overlapping, no path items can be seen contained by the compound path item in applescript/javascript. If I take a letter or number like A or 0 and expand into compound path, it shows path items inside of the compound path item.
Copy link to clipboard
Copied
There could be a small chance that you may have one of the buggy groups inside a compound path, so there's actually not a single pathItem - until you de-compound it and un-group it. Some external software may produce such a faulty compound path structure when art from those apps is imported into Illustrator.
Copy link to clipboard
Copied
Hey Silly-V! Its crazy I dont know if I just never noticed this was inconsistent or if its a change. Ive never had issues drilling down into compound path items to find a fill.
Copy link to clipboard
Copied
Crazy, I relesed and remade and it worked correctly. The paths were generated by a font expanded in illustrator 2020. Seems insane to run on error release compound path then re-make but its better then nothing.
Copy link to clipboard
Copied
And now thanks to you, we are more knowledgeable as to why this occurs: in this case we can add the entire realm of fonts to the list of suspects!