textItem.contents resets size of Text

  • 2
  • Problem
  • Updated 4 years ago
I'm trying to use layer.textItem.contents = "newContents" and still keep the size of the text item I am updating even when it has been transformed.

How do I achieve this?

This is surely a bug.
Photo of David ODonoghue

David ODonoghue

  • 7 Posts
  • 0 Reply Likes
  • frustrated

Posted 4 years ago

  • 2
Photo of christoph pfaffenbichler

christoph pfaffenbichler, Champion

  • 1199 Posts
  • 159 Reply Likes
So you are talking about Scripting?
If so what you have provided is hardly sufficient to judge what’s going on, I can’t reproduce the issue immediately.
Does the type layer contain text with different sizes?
Photo of David ODonoghue

David ODonoghue

  • 7 Posts
  • 0 Reply Likes
I found some info in some of the comments here: http://feedback.photoshop.com/photosh...

Here's the details:

I'm using textItem.contents
The text has been transformed (resized?).
When I set the contents to "newText" it resets size

Plenty of detail. All good though, I think Adobe are working on it.
Photo of christoph pfaffenbichler

christoph pfaffenbichler, Champion

  • 1199 Posts
  • 159 Reply Likes
Sorry, I had missed the transformation aspect.