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

Custom Swatch Panel

Explorer ,
Aug 09, 2012 Aug 09, 2012

Hello,

I want to create a custom color swatch panel for Illustrator. But I cant figure out a way to add swatches to the panel and drag/drop them into file.

Kindly guide me to an example or the steps required to build such a panel.

I've created a panel using CS Extension builder but cant figure out how to populate it with swatches.

Thanks

TOPICS
SDK
2.0K
Translate
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 ,
Aug 10, 2012 Aug 10, 2012

There's no example or good set of steps for doing that. Getting a list of swatches in the document is fairly easy (AISwatchListSuite) but turning that into nice thumbnails of the swatches is actually something AI doesn't provide. We have to internally render them off-screen and convert them into our own image class for rendering in our UI (we use Qt). I don't know what you'd have to do to turn that into icons for CS Extensions, since I've never used that.


Drag & drop is a whole other problem. That'll be entirely CS Extensions though. Assuming you have them rendered nicely in your panel, and the extension API lets you do things like drag & drop into the file, it would be fairly easy to apply the specified swatch to the object. I'd be surprised if that D&D functionality was there though. But I know very little of the CS Extension Manager so don't trust my opinion on that!

Translate
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 ,
Oct 08, 2012 Oct 08, 2012

To achieve what you want to do, you could use Flash / Extension Builder to create your swatch.

Then you will have to implement Drag & Drop, using flex Drag and Drop.

So, you could drag and drop from Illustrator to your swatch and from your swatch to Illustrator.

This could be achieved without using a plugin. (Only Extension).

Thomas.

Translate
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
Explorer ,
Oct 08, 2012 Oct 08, 2012

I used the CS Extension to design the panel and flex to drag drop.

However the swatch created is a bitmap image and doesnot behave like the illustrator swatch. Is creating a swatch similar to Illustrator possible using CSExtension & Flex?

Translate
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 ,
Oct 09, 2012 Oct 09, 2012
LATEST

You have to use FlashBuilder and Extension builder to be able to create an extension that could be added to Illustrator or Photoshop.

So then you could create an extension project that could be added to Illustrator or whatever.

The extension you will create, will behave as a native illustrator swatch.

Translate
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