Skip to main content
Participant
January 17, 2020
Question

CEP Javascript code to open Illustrator colorpicker from JSX

  • January 17, 2020
  • 2 replies
  • 1914 views

Hi,

I'm writing a Photoshop and Illustrator extension and I'm tryting to find the Javascript code that will open the standard colorpicker in Illustrator. Does anyone know the correct Javascript code I need to call in Illustrator to open the standard Illustrator colorpicker from a JSX file?

In Photoshop the call is -  app.showColorPicker() - which works fine, but I cannot find an equivalent call for Illustrator. I  do have a copy of the Adobe Illustrator CC 2017 Scripting reference (latest I could find on the internet) - which publishes the following command to open a colorpicker in Illustrator

$.colorPicker()

The problem is that this command (with the dollar sign) only opens an old legacy colorpicker and not the standard colorpicker that people expect to use- see image (the old legacy colorpicker that opens is the one on the right - but I need to open the colorpicker on the left)

i.is.cc/2D3xWNmK.png  

thanks in advance

 

This topic has been closed for replies.

2 replies

CarlosCanto
Community Expert
Community Expert
May 11, 2020

can we see your code? can you put together a simplified version of your UI for us to troubleshoot?

tomb63Author
Participant
January 17, 2020

Doh! - I Just dicovered this post from 2014 https://community.adobe.com/t5/illustrator/show-color-picker-dialog-jsx-csaw/td-p/5877341 which reminded me that the $.colorPicker() call is a basic Javascript colorpicker - and not from Illustrator at all - sadly it seems Adobe still hasn't published the code to access the Illustrator colorpicker - sigh - 😞

schroef
Inspiring
May 11, 2020

Problem with this picker is, if you link it to a variable and call it from say an DIalog window. When closing the color picker panel, the dialog window is also closed. Not sure why this happens though.