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

AIColor, swatch palette and AIArtHandles.

Enthusiast ,
Nov 18, 2008 Nov 18, 2008

Copy link to clipboard

Copied

For a given artwork, is there a way to retrieve all AIArtHandles, using a given AIColor (Fill, Stroke and Style) from the swatch palette?

I would like to do this without parsing the entire artwork tree, and checking style, fill and stroke of all AIArtHandles. (If it is possible).

The aim is to "index" the AIColor of the Artwork.

Thank,
Thomas.
TOPICS
SDK

Views

639

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
Adobe
Guide ,
Nov 20, 2008 Nov 20, 2008

Copy link to clipboard

Copied

I don't know if this will work, but you might try looking at GetArtForCurrentPathStyle() in AIMatchingArt.h. It's not quite what you're asking for, but you might be able to jimmy the current path style to get the matches you want, I'm not sure.

Also, if comes to having to parse the whole tree there's a function in AIPathStyle.h called ObjectUsesAIColor() that will check the object & and it's associated style for the colour in question. That might help if it comes to that.

Votes

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
Enthusiast ,
Nov 24, 2008 Nov 24, 2008

Copy link to clipboard

Copied

LATEST
Parsing sample codes in sdk, and according to your tips, i found how could i do do such operations.

Just take a look at SnippetRunner sample, and SnpLiveColor.
There are many samples of what to do with artwork's colors, and how to do.

for what i would like to do, i must use sAIPathStyle->AdjustObjectAIColors.

Thx. Thomas

Votes

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