Posts: 1
Threads: 1
Joined: Aug 2020
Reputation:
0
Operating system(s):
- Windows (Vista and later,32-bit)
- OSX/macOS
Gimp version: 2.10
I'm using Gimp to do spritesheets, and I'd love a way to move a selection by a given number of pixels along an axis; E.G. 256px to the right on the x-axis. I can't do this visually, because the layers have transparency, the selections I'm working with don't line up the same way with the guides. The resolution is too high to just spam the arrow keys. I haven't found anything obvious in the documentation or the various tool options in Gimp.
My current workaround is to fill a rectangular selection around the sprite with cyan and line it up visually, but that's really clunky. Surely there's a better way?
Posts: 149
Threads: 2
Joined: Mar 2019
Reputation:
56
Operating system(s):
Gimp version: 3.0
With the 3D Transform Tool, you can specify manually the X and Y offsets at sub-pixels precision.
Posts: 237
Threads: 4
Joined: Jan 2019
Reputation:
17
Operating system(s):
- Windows (Vista and later)
- Linux
Gimp version: 2.10
The benefit of using a script that calls gimp-item-transform-translate is that it looks as though this function doesn't use interpolation (I haven't checked the source code but the pdb doesn't say that it is affected by the selected interpolation, where other transform functions say that they are affected in this way) - whereas the Unified Transform tool will use interpolation - something that you don't want for a simple move.
If you were using a simple 'step and repeat' process (moving, say, to the right the same number of pixels each time) you could just use Ctrl-F to repeat the script.