This content has been marked as final.
Show 1 reply
-
1. Re: PS cxsx layer translate method
wygyj Aug 7, 2014 8:03 PM (in response to wygyj)I have found what the object is. The object is that value with units like "10 px" or "10 in" in string format. And you can just use 10(int) or 10(Number) as arguments, this's ok too. But if you use it without units, you must set the application's units to what you want like below.
app.preferences.rulerUnits = Units.PIXELS;
The code above set the units to pixels in Photoshop. You can set another units also.
