There's a very convenient way to do this available since the Gimp v.2.10:ĭouble click on the layer you want to move (or right click on it Right-click, Layer -> Transform -> Offset Or you could do this more simply using gimp_layer_set_offsets like: pdb.gimp_layer_set_offsets(layer, x_new, y_new)Īlternatively, if you only want to move the content of the layer: > pdb.gimp_layer_translate(layer, x_new - x_off, y_new - y_off) With these lines of Python the active layer can be moved to an absolute position, like (32, 64), from the Python console: > x_new = 32 The new menu item will appear at the bottom of the Layer menu Move to. ( Official instructions)Ĭlicks Filters -> Script-Fu -> Refresh scripts. Move the script to %USERPROFILE\.gimp-2.8\scripts directory on Windows, ~/Library/Application Support/GIMP/2.8/scripts on OS X or ~/.gimp-2.8/scripts on Linux. There is a script to do this that can be download from the GIMP Plugin registry. If you want to follow this design principle specifying exact coordinates one by one becomes just a tedious labour. I think this is why gimp does not include a tool to specify the exact coordinates. Reducing the number of alignments (guides) helps you getting a cleaner design. One of the design principle is that you should have things align in your whole project. Gimp will give you a hand with the exact pixels. Drag down (starting from the left ruler) a guide to the X coordinate you want. Drag down (starting from the top ruler) a guide to the Y coordinate you want.Repeat the procedure for another horizontal or vertical Guide (you can also do more guides to specify width and height)Īlternatively, you can also create the guides dragging from the rulers:.Specify if you want and horizontal or vertical guide.Anyway, the best (correct) approach is with guides: It is simply not the appropriate way of aligning elements when you are designing, though I recognize that sometimes it is useful as a short-cut. I am afraid that Gimp doesn't include it because it is tedious.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |