Highlighted

Any hacks or ways to get the native color picker?

Engaged ,
Jun 14, 2020

Copy link to clipboard

Copied

In Photoshop we can do this:

app.showColorPicker()

 In After Effects, you can prompt the native color picker through a somewhat hacky means:

  1. Create a new layer
  2. Add a Color expression control and select it
  3. Invoke the "Edit Value" menu command

 

I'm well aware of the $.colorPicker route, but would love to find some means (C++, JSX, HTML) to prompt AI's native color picker no matter how hacky it might be. Any one have any ideas or solutions to this?

Adobe Community Professional
Correct answer by Charu Rajput | Adobe Community Professional

Hi,

I am not sure whether following snippet is what your are looking, but try once. This is in JSX

 

#target illustrator
var color = new CMYKColor();
app.showColorPicker(color);

 

Let us know if this helps. 

Topics

Scripting

Views

383

Likes

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

Any hacks or ways to get the native color picker?

Engaged ,
Jun 14, 2020

Copy link to clipboard

Copied

In Photoshop we can do this:

app.showColorPicker()

 In After Effects, you can prompt the native color picker through a somewhat hacky means:

  1. Create a new layer
  2. Add a Color expression control and select it
  3. Invoke the "Edit Value" menu command

 

I'm well aware of the $.colorPicker route, but would love to find some means (C++, JSX, HTML) to prompt AI's native color picker no matter how hacky it might be. Any one have any ideas or solutions to this?

Adobe Community Professional
Correct answer by Charu Rajput | Adobe Community Professional

Hi,

I am not sure whether following snippet is what your are looking, but try once. This is in JSX

 

#target illustrator
var color = new CMYKColor();
app.showColorPicker(color);

 

Let us know if this helps. 

Topics

Scripting

Views

384

Likes

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
Adobe Community Professional ,
Jun 14, 2020

Copy link to clipboard

Copied

Hi,

I am not sure whether following snippet is what your are looking, but try once. This is in JSX

 

#target illustrator
var color = new CMYKColor();
app.showColorPicker(color);

 

Let us know if this helps. 

Best regards

Likes

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
Reply
Loading...
Engaged ,
Jun 14, 2020

Copy link to clipboard

Copied

Yes! Thank you so much, that's exactly what I was hoping for. I looked at all the documentation sites, the scripting reference, Google'd to see this asked all over with no clear solution. How'd you find this? Is it undocumented?

Likes

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
Reply
Loading...
Adobe Community Professional ,
Jun 14, 2020

Copy link to clipboard

Copied

Yes, this is not in the PDF document that we usually refer for scripting. I find out from Object Model Viewer available in Extended Toolkit. See screenshot for the reference. 

Screenshot 2020-06-15 at 12.17.21 PM.png

 

After opening the Object Model Viewer, select Illustrator Library, and search with some keyword, I search with picker, and then this method comes up which takes one parameter of type Color. So I tried and it works.

 

 

Best regards

Likes

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
Reply
Loading...
Silly-V LATEST
Adobe Community Professional ,
Jun 16, 2020

Copy link to clipboard

Copied

If only someone made an OMV extension for VSCode!

Likes

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
Reply
Loading...
Most Valuable Participant ,
Jun 15, 2020

Copy link to clipboard

Copied

😉

There are more examples with same solution here in the Illustrator forum available.

 

eg

Is it possible to pick color from to another layer using scripting? 

Likes

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
Reply
Loading...
Adobe Community Professional ,
Jun 15, 2020

Copy link to clipboard

Copied

Answer is hidden in long list of replies. 😉 

Thanks for sharing

Best regards

Likes

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
Reply
Loading...
Engaged ,
Jun 15, 2020

Copy link to clipboard

Copied

I tried searching the forums first! Promise. Unfortunately you can't search the new forums with the scripting tag, and this one didn't show for me after I went through 2 pages of forum posts about color pickers.

Likes

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
Reply
Loading...
Most Valuable Participant ,
Jun 15, 2020

Copy link to clipboard

Copied

@Charu Rajput wrote: "Answer is hidden in long list of replies …"

Yes.

Unfortunately, this is often the case.

 

And sadly, many old hidden treasures have disappeared when switching to the new forum software.

 

Likes

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
Reply
Loading...
Adobe Community Professional ,
Jun 15, 2020

Copy link to clipboard

Copied

pixxxel_schubser,

Is there any thread or we can create a new post where we add all old links that are not working currently and try to bring up back? If possible.

Best regards

Likes

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
Reply
Loading...
Most Valuable Participant ,
Jun 15, 2020

Copy link to clipboard

Copied

Adobe is working for a solution. I forwarded a request a few weeks ago.

😉

Likes

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
Reply
Loading...