Photoshop - How to navigate the canvas using Javascript?

365 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 answers

1
Terus 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);