My objective is to …
- Make a Curves Adjustment Layer
- Set the Brush Tool
Both to be in the same BatchPlay
Code for making a curves adjustment layer & Setting the Brush Tool
await batchPlay(
[
{
"_obj": "make",
"_target": [
{
"_ref": "adjustmentLayer"
}
],
"using": {
"_obj": "adjustmentLayer",
"type": {
"_obj": "curves",
"presetKind": {
"_enum": "presetKindType",
"_value": "presetKindDefault"
}
}
},
"_isCommand": true,
"_options": {
"dialogOptions": "dontDisplay"
}
}
],{
"synchronousExecution": false,
"modalBehavior": "fail"
});
await batchPlay(
[
{
"_obj": "select",
"_target": [
{
"_ref": "paintbrushTool"
}
],
"_isCommand": true,
"_options": {
"dialogOptions": "dontDisplay"
}
}
],{
"synchronousExecution": false,
"modalBehavior": "fail"
});
Issue…
If I have Auto Select Target Adjustment Tool enabled in the curves option then the Brush Tool Never gets selected but if the Auto Select Target Adjustment Tool is Disabled then it works.
Does anyone know how to make this work if the Auto Select Target Adjustment Tool is Enabled ?