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

Any hacks or ways to get the native color picker?

Enthusiast ,
Jun 14, 2020 Jun 14, 2020

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
1.3K
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

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. 

Translate
Adobe
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. 

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

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

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

If only someone made an OMV extension for VSCode!

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

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

Answer is hidden in long list of replies. 😉 

Thanks for sharing

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

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.

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

 

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

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

😉

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