I have written a script and used it for several years to take metadata and place it on a PSD file as a layer as 12 point text.
This script runs fine on my main desktop computer running Win7 and Photoshop CS 6.
I moved the script to my laptop running Win 8.1 and Photoshop CC 2014 (latest updates applied).
When the script hits the line:
TextRef.size = new UnitValue(12,'pt');
the "size" value does not change3. I set a breakpoint and traced the code leading up to the like and the TextRef.size value in the data browser is "2.88px" before and after the line is executed. The resulting text is placed in the text layer as a 2.88 point font (i.e. "squint-font") rather than the 12 point font desired.
It is the *exact* script on both computers and runs perfect on one and seems to skip the line of code. I checked that the Units and Rulers preferences are the same on both systems.
I am stumped. Can anyone help point me a further direction to look at this?
Thank you!
-Mike