Highlighted

CEP Javascript code to open Illustrator colorpicker from JSX

New Here ,
Jan 17, 2020

Copy link to clipboard

Copied

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

 

TOPICS
Scripting, Third party plugins

Views

817

Likes

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

CEP Javascript code to open Illustrator colorpicker from JSX

New Here ,
Jan 17, 2020

Copy link to clipboard

Copied

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

 

TOPICS
Scripting, Third party plugins

Views

818

Likes

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
Jan 17, 2020 0
New Here ,
Jan 17, 2020

Copy link to clipboard

Copied

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 - 😞

Likes

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
Reply
Loading...
Jan 17, 2020 0
Engaged ,
May 11, 2020

Copy link to clipboard

Copied

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.

Likes

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
Reply
Loading...
May 11, 2020 0
Adobe Community Professional ,
May 11, 2020

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
May 11, 2020 0