Thanks to all for your kind comments.
RobA wrote:
Hi Gino D- That is a fun script.
One question and one request....
The question - It doesn't seem that offsets of 1 or -1 work... is that by design? (Offsets of 2 and -2 seem to produce actual offsets of 1 and -1 respectively.) This is in gimp 2.6 - didn't get a chance to try on 2.8 yet..
Okay, I will check the code to verify this issue and, if necessary, I will fix the bug.
However, note that in certain cases different values of the X or Y displacement applied to an identical layer may produce the same eventual effect in terms of actual shifting of the duplicate along the canvas, whether the values in question are relatively close together (such as 0 and 1, or 1 and 2, etc.) and expressed through one of the units of measure among those in percentage rather than by pixels.
The latter, in fact, represents the only unit that is really accurate, whereas the other units imply approximations that, as I said, can sometimes lead to identical or at first sight unexpected results.
RobA wrote:
Now the request -
Could you add a flag option to "recolour with gradient"?
I'd think you would use something like:
(define colourarray (cadr (gimp-gradient-get-uniform-samples (car (gimp-context-get-gradient)) num-copies FALSE))))
to uniformly sample the gradient as an array at the start.
...
This is an interesting request.
I will take such a feature into consideration and see if I can implement it without further overloading the dialog box, which is already quite redundant, as you can notice.
Thanks for the precious suggestions anyway.