Copy link to clipboard
Copied
Is there a way to make the color picker pop up during a script and allow you to choose a color?
Copy link to clipboard
Copied
At the very least there is a work-around to set the Foreground Color with an intermediate Solid Color Layer.
Copy link to clipboard
Copied
You can use the system one easy enough with script…
$.colorPicker();
Copy link to clipboard
Copied
app.showColorPicker() was added for CS5.
Copy link to clipboard
Copied
As if anybody ever reads the Changes since earlier versions—CS5 changes page… ooops much better thanks
Copy link to clipboard
Copied
Good one!
ExtendScript Toolkit’s Object Model Viewer seems to be missing that.
Copy link to clipboard
Copied
Yes, missed that in the documentation. Darn it!
I always use the runtime documentation: app.reflect.methods or app.reflect.properties
app could be any object, activeDocument, activeLayer, etc.
Copy link to clipboard
Copied
This is a MUST for us.
Thanks for app.reflect.methods + app.reflect.properties
Copy link to clipboard
Copied
yes! just stumbled onto this post.
THANKYOU for the reflect.methods and reflect.properties.
(how did I live without that for so long. )
Copy link to clipboard
Copied
I want to place on the form 2 button to select the color for foreground and background. This function -
app.showColorPicker() - assigns a color only the foreground. How to do so she could assign the same color and the background? Or which function changes colors (by analogy with the X button)
Copy link to clipboard
Copied
The code below is the same as pressing x to exchange the foreground and background.
var desc = new ActionDescriptor();
var ref = new ActionReference();
ref.putProperty( charIDToTypeID('Clr '), charIDToTypeID('Clrs') );
desc.putReference( charIDToTypeID('null'), ref);
executeAction( charIDToTypeID('Exch'), desc, DialogModes.NO );