• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

VBScript: Get Text FillColor Color Build

Guest
May 19, 2017 May 19, 2017

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.

TOPICS
Scripting

Views

241

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation