I'm using the script provided here:
When I'm trying to update the text inside a layer with the updateText(text) (or any verion with more arguments) the size and position of the textlayer changes. Included is the psd file we are using. It has 3 layers in total, one being the background and Layer I and Layer II. These both have textfields on them and when looking at the layers it shows the position and dimensions of the textlayer. When changing the text these position and dimensions change. Here I've got a print where 1 is the original dimensions and position which are gotten by using getRight(), getBottom(), getLeft(), getTop(), getHeight() and getWidht.
The second line (2) is these same commando's but after we used the updatetext. as you see these things changed.
layer: Layer I
1 Right: 636 Left: 154 Top: 153 Bottom: 250 Height: 97 Width: 482
2 Right: 666 Left: 154 Top: 153 Bottom: 348 Height: 195 Width: 512
layer: Layer II
1 Right: 637 Left: 516 Top: 270 Bottom: 323 Height: 53 Width: 121
2 Right: 664 Left: 516 Top: 270 Bottom: 367 Height: 97 Width: 148
I'm looking for either a way to calculate/predict the movement which will happen so I can move the text back to the original position again or for a way to have the text not move anymore.
Could you please assist me?