When I create a text layer in a document, I can get its font size correctly with the code. But when I enlarge the text with the zoom tool, I can’t get the enlarged font size. The returned value is the value before it is changed.
This is my code:
var info=window.require("photoshop").action.batchPlay(
[{
"_obj": "get",
"_target": [{
"_ref": "layer",
"_enum": "ordinal",
"_value": "targetEnum"
}],
"_options": {
"dialogOptions": "dontDisplay"
}
}], {
"synchronousExecution": true,
"modalBehavior": "execute"
});
console.log(info[0].textKey.textStyleRange[0].textStyle.size._value);
Who has the code sharing to get the font size correctly?