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
Can you show a screenshot that may explain what you mean?
You can access the fillColor of any of the pathItems in a compoundPathItem, e.g.
var paths = app.activeDocument.compoundPathItems.pathItems; var c1 = paths.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).
it's you, that still works in 2020
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.
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.
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.
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!