Changing AIColor "Black" to AICustomColor "Black"
I've been dealing with this issue for quite awhile, and while I've found some work-arounds, nothing seems to consistently work in every case.
My document has a kFourColor definition for "Black."
I want to change the definition to a kCustomFourColor "Black."
So, I can create all the color definitions, etc. but when it comes time to create my AICustomColorHandle, the only way I can find to get a valid one is by using AICustomColorSuite->NewCustomColor(...).
That function takes a name for the custom color as a parameter. When I pass the name "Black", I get the "NAM2" error because "Black" is a reserved name.
I have worked around this in some cases by using a dummy name when creating the custom color, then changing the name to "Black" later with AICustomColorSuite->SetCustomColorName(...). As I said, this doesn't always seem to work.
It feels like we're just not supposed to be able to create "Black" as a custom spot color Global Process Color, but that's what my workflow here wants. And it does work in some cases.
Anyone have any ideas? Is there some other way to get a valid AICustomColorHandle that I'm missing?