Steve wrote:
Glad it worked Alexey, it shows how the move/translate works, but it might not be the best way forward, this second version is easier to follow and doesn’t require move/translate
(define (script-fu-resize4096 image layer)
(gimp-rect-select image 0 0 4096 4096 2 FALSE 0)
(gimp-edit-copy layer)
(gimp-image-resize image 8192 8192 0 0)
(gimp-layer-resize-to-image-size layer)
(gimp-rect-select image 4096 0 4096 4096 2 FALSE 0)
(gimp-edit-paste layer FALSE)
(gimp-floating-sel-anchor (car (gimp-image-get-active-drawable image)))
(gimp-displays-flush)
)
Way too complicated.... why use the clipboard? All you need to do (Scheme or Python) is:
1) make a copy of the layer,
2) add it to thesame image
3) change the offset
So, in Python:
newlayer=layer.copy()
image.add_layer(newlayer,0)
newlayer.set_offsets(200,200)
Scheme code is not more complicated, just less readable

And the clipboard is for humans only!