-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bounds bug when moving artboards using extend script #360
Comments
any plans or roadmap for this bug ? |
I believe you're seeing the results of "auto-expand" with artboards. When artboards are moved past a tile boundary (probably 1024 in your case) the document bounds are changed to make all the tiles that contain any layers/artboards visible. In addition, if the art board is moved past 0,0 (where the position would otherwise became negative), all the layers are moved down and to the right, to keep the document coordinates positive and everything in the doc. The top left of the visible canvas in Photoshop is 0,0 and needs to remain so for compatibility with existing plugins/scripts that assume the document bounds are positive. In general, the doc bounds are allowed to change as art boards are moved around. |
Closing as answered. @canoztokmak let me know if tim's comment was insufficient, or if you think there is something else going on. |
Hey there,
Looks like there is very strange bug when moving artboard layers using extend script. Tried this on Photoshop CC 2015 and CC 2015.5.
Reproducing steps are listed below:
1- Retrieve document info, and output bounds value.
2- Displace it with a delta greater than 1024 pixels. (e.g. dx: 1024, dy: 0, or dx: 1024, dy: 1024)
3- Retrieve document info again, and output bounds value. It will be invalid.
4- Displace it back to its original position negating the delta used in previous step.
5- Retrieve document info again, and bounds value will show invalid values. (plus or minus 1024)
This behavior can be seen in the attached sample project.
Below are sample outputs I created using the sample project:
Below is valid because the displaced artboard won't be beyond 1024 pixels. Initially, it was at (0,0).
But, if the it was initially at (1,1), displacing it (1023, 1023) will yield invalid output again. See intermediate bounds.
sample.zip
The text was updated successfully, but these errors were encountered: