Hi. I have a newbie question.
I’m trying to change the value of some text layer by batch play.
I have “layerID” of the target layer.
I can get this result if I change a value manually w/ alchemist listener is on.
So, I made a function like this but it returns error ![]()
await batchPlay(
[{
"_obj": "set",
"_target": [
{
"_ref": "textLayer",
"_enum": "ordinal",
"_value": "targetEnum",
"_id": parseInt(layerID)
}
],
"to": [{
"_obj": "textLayer",
"textKey": transString
}],
"_isCommand": false,
"_options": {
"dialogOptions": "dontDisplay"
}
}], {
"synchronousExecution": true,
});
How can I fix this?


