Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

P: Extendscript - Problems with Typography manipulation

LEGEND ,
Oct 22, 2014 Oct 22, 2014

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
287
Translate
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.
Translate
5 Comments
Community Expert ,
Oct 22, 2014 Oct 22, 2014
It’s a known issue as Tom Ruark has acknowledged it in this thread.
https://forums.adobe.com/thread/1597297
Translate
Report
Community Expert ,
Oct 22, 2014 Oct 22, 2014
The work-around is to use AM code.
Translate
Report
Adobe Employee ,
Oct 23, 2014 Oct 23, 2014
Hi Stephen, 

Did you ever transform this text?

Thanks,
David
Translate
Report
Adobe Employee ,
Dec 10, 2014 Dec 10, 2014
Should be fixed in the 2014.2.2 update. Choose Help>Updates... to install.
Translate
Report
LEGEND ,
Jan 09, 2015 Jan 09, 2015
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?
Translate
Report