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

How to disable CMYK colour in the document in illustrator sdk using

Community Beginner ,
Mar 12, 2023 Mar 12, 2023

Copy link to clipboard

Copied

Hi all,

How to disable or remove CMYK colour in the document in illustrator sdk using c++ with sample example

TOPICS
SDK

Views

221

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

correct answers 1 Correct answer

Guide , Mar 13, 2023 Mar 13, 2023

I'm not sure what you want to do is possible. The user can switched colour models whenever they want; there's no way to disable CMYK. Best you could do would be to notice when they've picked CMYK and inform the user your plugin doesn't work with CMYK.

 

Removing CMYK colours from the document would just mean iterating the swatch list and deleting any colour that is a CMYK colour. Look in AISwatchList.h for functions to do that. Nothing stops the user from creating a CMYK colour manually though.

 

AI

...

Votes

Translate

Translate
Adobe
Guide ,
Mar 13, 2023 Mar 13, 2023

Copy link to clipboard

Copied

LATEST

I'm not sure what you want to do is possible. The user can switched colour models whenever they want; there's no way to disable CMYK. Best you could do would be to notice when they've picked CMYK and inform the user your plugin doesn't work with CMYK.

 

Removing CMYK colours from the document would just mean iterating the swatch list and deleting any colour that is a CMYK colour. Look in AISwatchList.h for functions to do that. Nothing stops the user from creating a CMYK colour manually though.

 

AIColor.h has functions for iterating all the colours in the document, if you need to insure that no art has a CMYK colour anywhere in the document. That's probably the best you can do.

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