Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

Did CC 2014.2 break textItem.size?

$
0
0

Scripts that worked before the update are now broken, and text layers created via script are all 12px. See this simple script:

 

var docRef = activeDocument;
var TextLabel = docRef.artLayers.add();
TextLabel.kind = LayerKind.TEXT;
TextLabel.name = "Test";
TextLabel.textItem.contents = "This text should be 50pt";
TextLabel.textItem.size = new UnitValue("50 points"); // other variations, such as TextLabel.textItem.size = 50 also fail.
TextLabel.textItem.font = "Monaco";

 

Any help? Thanks.


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>