颜色对话框
Colour dialog box
是否可以在脚本中,在Photoshop中打开颜色选择器对话框,让用户选择颜色,然后继续脚本? Scriptlistener 没有找到任何东西。
app.showColorPicker()
和
$.colorPicker(ColorPicker.ADOBE);
不要在 cs2 中为我工作
你可以这样做:
var color=app.showColorPicker()
var foregroundColor = app.foregroundColor;
alert ("foregroundcolor\n"+foregroundColor.rgb.red+"\n"+foregroundColor.rgb.green+"\n"+foregroundColor.rgb.blue);
你会看到这个:
得到这个:
很遗憾,您需要 Photoshop CS5 或更高版本 :-(
备选方案
我不确定 app.system()
何时被引入到 Photoshop 中,但如果您有它,它 会退出 以执行您作为参数提供的命令。因此,您可以进入 OSX 的 脚本编辑器 并输入
choose color
并将其保存为名为 OSXColorPicker
的应用程序。然后在 Photoshop 中,你可以做
app.system("open OSXColorPicker");
是否可以在脚本中,在Photoshop中打开颜色选择器对话框,让用户选择颜色,然后继续脚本? Scriptlistener 没有找到任何东西。
app.showColorPicker()
和
$.colorPicker(ColorPicker.ADOBE);
不要在 cs2 中为我工作
你可以这样做:
var color=app.showColorPicker()
var foregroundColor = app.foregroundColor;
alert ("foregroundcolor\n"+foregroundColor.rgb.red+"\n"+foregroundColor.rgb.green+"\n"+foregroundColor.rgb.blue);
你会看到这个:
得到这个:
很遗憾,您需要 Photoshop CS5 或更高版本 :-(
备选方案
我不确定 app.system()
何时被引入到 Photoshop 中,但如果您有它,它 会退出 以执行您作为参数提供的命令。因此,您可以进入 OSX 的 脚本编辑器 并输入
choose color
并将其保存为名为 OSXColorPicker
的应用程序。然后在 Photoshop 中,你可以做
app.system("open OSXColorPicker");