Copy link to clipboard
Copied
I'm trying to get the color build of some text in InDesign.
Sometimes this text will not be a saved document swatch.
Using this:
.Characters.Item(c).FillColor
'c is the index of the letter while looping through the text characters
I can get the swatch name, but using this depends too much on the end user correctly naming every swatch and I can't rely on that.
Is there a way to go from .FillColor to CMYK or RGB color values?
I'm trying to avoid turning every color into a swatch but if this is the only possibility can anyone point me to an easy way of doing this (ie someone else's code)?
Any help is greatly appreciated.
Edit: To clarify what I mean by "Get", I need the color values as a string, an array would suffice.
Have something to add?