P: Extendscript - Problems with Typography manipulation

1 Vote
LEGEND ,
Oct 22, 2014 Oct 22, 2014

Copy link to clipboard

Copied

Hi. I have an extendscript script that (amongst other things) overlays some type over an image. The script dynamically sets the font-size - but i just upgraded to CC2014 and it's suddenly broken.

var identity = "some text"
var newLayerRef = docRef.artLayers.add();
newLayerRef.kind = LayerKind.TEXT;
var textItemRef = newLayerRef.textItem
textItemRef.contents = identity;
app.preferences.typeUnits = TypeUnits.POINTS;
var textSize = 100;
// Set Text Size
if (identity.length < 11) textSize = 200;

textItemRef.size = textSize;

That works in CC, but not in CC14. If I add:

alert(textSize + " " + textItemRef.size);

I get "100 6.4px". So I can read the size - but not set it for some reason.

Bug?

Bug Fixed
TOPICS
macOS , Windows

Views

27

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Dec 10, 2014 Dec 10, 2014
Should be fixed in the 2014.2.2 update. Choose Help>Updates... to install.

Votes

Translate

Translate
5 Comments
Adobe Community Professional ,
Oct 22, 2014 Oct 22, 2014

Copy link to clipboard

Copied

It’s a known issue as Tom Ruark has acknowledged it in this thread.
https://forums.adobe.com/thread/1597297

Votes

Translate

Translate

Report

Report
Adobe Community Professional ,
Oct 22, 2014 Oct 22, 2014

Copy link to clipboard

Copied

The work-around is to use AM code.

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Oct 23, 2014 Oct 23, 2014

Copy link to clipboard

Copied

Hi Stephen, 

Did you ever transform this text?

Thanks,
David

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Dec 10, 2014 Dec 10, 2014

Copy link to clipboard

Copied

Should be fixed in the 2014.2.2 update. Choose Help>Updates... to install.

Senior Product Manager - Customer Advocacy - Digital Imaging

Votes

Translate

Translate

Report

Report
LEGEND ,
Jan 09, 2015 Jan 09, 2015

Copy link to clipboard

Copied

LATEST
Where is the link for extendscript cc2014...all I found was the cc version and it can't access photoshop cc2014 in the pulldown menu?

Votes

Translate

Translate

Report

Report