smallpath / adobe-color-picker

The rebuilt color picker of Adobe scripting for PS,AI,AE and so on.
MIT License
62 stars 6 forks source link
adobe color-picker

AdobeColorPicker

This is a rebuilt color picker for Adobe scripting.
Supporting all Adobe softwares such as PS,AI,AE and so on.

AE

Installation

Download the latest release.
You can import ColorPicker to your script in following two ways:

Use include (Suggested)

To use #include,you should specific the path to the colorPicker.js

#include './colorPicker.js'

To make production, don't miss the nice command File->Export as binary in ESTK

Copy and paste

Copy all lines in colorPicker.js, then paste them on the top of your code.

Simple as pie usage

var resultColor = colorPicker();
resultColor;
//The rgb Array you picked up,from [0,0,0] to [1,1,1];

Tip

The 4 editable text areas have shotcut keys:
press and to add/sub 1 , while with Shift to add/sub 10.

Input a default color

The default color is specified by new colorPicker(defaultColor)

The default color is to be preselected in the ColorPicker,as RGB,HEX and HSB,or [1,1,1] for the platform default.

Option Type Description
RGB Array From [0,0,0] to [1,1,1]
LargeRGB Array From [0,0,0] to [255,255,255]
Hex String From "000000" to "FFFFFF"
ShortHex String "F7C" which means "FF77CC"
HSB Array From [0,0,0,"hsb"] to [360,100,100,"hsb"]

Screenshot

PS

PS

AI

AI

AE

AE

ESTK

ESTK

Changelog

v2.0

v1.6

v1.5

v1.4

v1.3

v1.2

v1.1

v1.0

v0.9

Contributor

smallpath
zlovatt

Contribution

If you find a bug or want to contribute to the color picker,please submit an issue or send a pull request

License

The MIT license