Hello everyone,
how to set the scale of cropTool in uxp? This is my code. It doesn’t work. I don’t know how to do it.
const batchPlay = require("photoshop").action.batchPlay;
const result = batchPlay(
[{
"_obj": "get",
"_target": [{
"_property": "currentToolOptions"
},
{
"_ref": "application",
"_enum": "ordinal",
"_value": "targetEnum"
}
],
"_options": {
"dialogOptions": "dontDisplay"
}
}], {
"synchronousExecution": true,
"modalBehavior": "wait"
});
console.log(result[0]);
batchPlay([{
"_obj": "set",
"_target": [{
"_ref": "$CrpO",
"_enum": "ordinal",
"_value": "targetEnum"
}],
"to": {
"_obj": "$CrpO",
"aspectWidth":60
}
}], {
"synchronousExecution": true,
"modalBehavior": "wait"
})