I am trying to add a step to a script in Photoshop CC 2015 that will create a text layer and fill it with the text that I need (in the test case, "Test Text"). However, whenever I try to run the script in Photoshop, I get a syntax error pointing to the content line. I really have no clue what could be wrong.
Here is the step:
var newTextLayer = doc.artLayers.add();
newTextLayer.kind = LayerKind.TEXT;
var text = newTextLayer.textItem;
text.contents = “TEST TEXT”
使用"
或'
代替“
。”
text.contents = "TEST TEXT";
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.