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

Colour picker

Engaged ,
Feb 28, 2015 Feb 28, 2015

Copy link to clipboard

Copied

I accidentally asked this question in the wrong forum.

So is it possible to call the colorpicker from CS2 using JavaScript or let the user pick a colour mid script, as it were?

However most answers require CS5 and above.

TOPICS
Actions and scripting

Views

304

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
Adobe
Enthusiast ,
Feb 28, 2015 Feb 28, 2015

Copy link to clipboard

Copied

Not sure if this will work, but worth a try.

Should change the background colour to the selected one.

var colour = new SolidColor();

colour.rgb.hexValue = getHexColor();

app.backgroundColor = colour;

function getHexColor(){

   var result = $.colorPicker( -1 ).toString(16);

   if (result != -1){

      result = '00000'.substring( 0, 6 - result.length ) + result;

   }

   return result;

};

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
Advisor ,
Mar 01, 2015 Mar 01, 2015

Copy link to clipboard

Copied

LATEST

Here is a hand coded color selector that should work with CS2:

http://ps-scripts.cvs.sourceforge.net/viewvc/ps-scripts/xtools/xlib/ColorChooser.jsx

It's based on a script by Larry Ligon. There are some other color-related scripts in that folder that you might find useful (or baffling).

-X

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