|
Krita Source Code Documentation
|
Variables | |
| b = n.bounds() | |
| d = Krita.instance().activeDocument() | |
| h = d.height() | |
| r = QRect(x, y, w, h) | |
| w = d.width() | |
| x = d.xOffset() | |
| y = d.yOffset() | |
This script will iterate over all toplevel nodes, create keeping track of the layer boundaries and then resize the image to the unity of all boundaries.
| resize_to_all_layers.b = n.bounds() |
Definition at line 26 of file resize_to_all_layers.py.
| resize_to_all_layers.d = Krita.instance().activeDocument() |
Definition at line 15 of file resize_to_all_layers.py.
| resize_to_all_layers.h = d.height() |
Definition at line 17 of file resize_to_all_layers.py.
| resize_to_all_layers.w = d.width() |
Definition at line 16 of file resize_to_all_layers.py.
| resize_to_all_layers.x = d.xOffset() |
Definition at line 18 of file resize_to_all_layers.py.
| resize_to_all_layers.y = d.yOffset() |
Definition at line 19 of file resize_to_all_layers.py.