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:
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?
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.
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.
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?
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.
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.
Copy link to clipboard
Copied
If only someone made an OMV extension for VSCode!
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?
Copy link to clipboard
Copied
Answer is hidden in long list of replies. 😉
Thanks for sharing
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.
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Adobe is working for a solution. I forwarded a request a few weeks ago.
😉