I'm working on a script that functions like Paint Tool SAI's Flip Canvas, which retains your relative viewing area after the flip. Say you're working on a 5000 wide x 1000 tall document with a black to white gradient that flows from left to right. If you're viewing the left (black) edge of the document in Photoshop then Flip Canvas, you're now viewing the mirrored right (white) portion of the picture. In SAI, you'd still be viewing the black area (mirrored left) area, and this is the functionality I want. Very handy for checking proportions while painting, as opposed to flipping individual layers/groups.
Does anyone know how to get/set the values for the viewing area in Photoshop?
I need to store and edit the current viewing area of an open PS document,
As far as I know this is not possible in Photoshop Scripting currently. (edited)
Feel free to make a Feature Request (for introducing this in the AM or DOM code) over at
A thread on a somewhat related issue (or at least I consider it related) does exist