Skip to main content
Inventsable
Legend
June 15, 2020
Answered

Any hacks or ways to get the native color picker?

  • June 15, 2020
  • 4 replies
  • 1419 views

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?

This topic has been closed for replies.
Correct answer Charu Rajput

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. 

4 replies

pixxxelschubser
Community Expert
Community Expert
June 16, 2020

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

😉

pixxxelschubser
Community Expert
Community Expert
June 15, 2020

@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.

 

Charu Rajput
Community Expert
Community Expert
June 15, 2020

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
pixxxelschubser
Community Expert
Community Expert
June 15, 2020

😉

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? 

Charu Rajput
Community Expert
Community Expert
June 15, 2020

Answer is hidden in long list of replies. 😉 

Thanks for sharing

Best regards
Charu Rajput
Community Expert
Charu RajputCommunity ExpertCorrect answer
Community Expert
June 15, 2020

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
Inventsable
Legend
June 15, 2020

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?

Charu Rajput
Community Expert
Community Expert
June 15, 2020

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. 

 

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