Photoshop: CS6 Scripting Bug setting text size.

  • 2
  • Problem
  • Updated 5 years ago
  • (Edited)
Windows 7, Photoshop CS6 version 13.0.1 (Not cloud).
When trying to change a text layer font size, it does not work correctly.
The result will be +- .5
If the text had been transformed the text size is way out and the transform factor is still being applied and should not be.
To test, run the following code on an active text layer.
app.activeDocument.activeLayer.textItem.size=40;
Photo of Paul Riggott

Paul Riggott

  • 359 Posts
  • 143 Reply Likes

Posted 6 years ago

  • 2
Photo of David

David, Official Rep

  • 2800 Posts
  • 390 Reply Likes
Howdy Paul,

I may have solution for you. I have a code snippet which should handle the behavior your are concerned about. I will email it to you. If anyone else would like a copy, please let me know (it's a bit large to post).

Thanks,
David
Photo of Paul Riggott

Paul Riggott

  • 359 Posts
  • 143 Reply Likes
Sorry David, it didn't work, but I have sent you a function that does, but it still will not help ALL scripter's in Photoshop CS6 and CC
Photo of Jeremy Knudsen

Jeremy Knudsen

  • 24 Posts
  • 1 Reply Like
Hi Paul, would you be able to share this with me? I'm having problems with my JSX scripts now that I'm using CS6 and I would like to modify them so that they work. For instance, I had a super simple script that would snap the text layer to the nearest pixel. In CS6, if I had to down sample the PSD to a smaller canvas size using Image Size, when I ran my script the text sizes revert to their text size before I did the Image Size resulting in huge text.
Photo of Paul Riggott

Paul Riggott

  • 359 Posts
  • 143 Reply Likes
Hi Jeremy, have a look at my snippets section ...
http://www.ps-bridge-scripts.talktalk...
Photo of Jeremy Knudsen

Jeremy Knudsen

  • 24 Posts
  • 1 Reply Like
Thanks Paul! I will check it out. I really appreciate you and the support you have provided to the scripting community by the way!