Photoshop - How to navigate the canvas using Javascript?

374 Views Asked by At

How does one get and set the following values using Javascript in Adobe Photoshop CS6+:

I see that there is an app.activeDocument.rotateCanvas() function, but beyond that...

1

There are 1 best solutions below

1
On

I'm not entirely sure what you mean by offset.

As for rotation. It's quite simple. The amount of rotation desired is measured in degrees & is placed between the brackets. So if you wanted to rotate counter clockwise that would be -90.

e.g.

    app.activeDocument.rotateCanvas(-90.0);