I tried to follow this and this but the color color picker is not displayed.
I want to display the color picker.
I tried to use alchemist and altered dontDisplay to display but it is still not showing the color picker.
What should I fix?
async function pickBrushColor() {
await require("photoshop").core.executeAsModal(async (executionControl, descriptor) => {
const result = await batchPlay(
[
{
_obj: "set",
_target: [
{
_ref: "color",
_property: "foregroundColor"
}
],
to: {
_obj: "RGBColor",
red: 128,
grain: 128,
blue: 128
},
source: "photoshopPicker",
_options: {
dialogOptions: "display"
}
}
],{
synchronousExecution: false,
modalBehavior: "execute"
});
}, {
"commandName": "pickBrushColor"
});
}