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

Any hacks or ways to get the native color picker?

Enthusiast ,
Jun 14, 2020 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?

TOPICS
Scripting

Views

859

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

Community Expert , Jun 14, 2020 Jun 14, 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. 

Votes

Translate

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

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 ,
Jun 14, 2020 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?

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

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
Valorous Hero ,
Jun 16, 2020 Jun 16, 2020

Copy link to clipboard

Copied

LATEST

If only someone made an OMV extension for VSCode!

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
Community Expert ,
Jun 15, 2020 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? 

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

Copy link to clipboard

Copied

Answer is hidden in long list of replies. 😉 

Thanks for sharing

Best regards

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

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
Community Expert ,
Jun 15, 2020 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.

 

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

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

Copy link to clipboard

Copied

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

😉

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