10-24-2022, 09:59 PM
I am more familiar with Python coding than I am with Scheme, but I've gotten this far with Scheme so I may as well finish the job. I'm assuming that using gimp-image-get-layers would just be:
(I haven't done anything with multiple return values before, but from some quick googling this seems to be the right way to do that)
I haven't been able to find terrific documentation on looping in Scheme. Based on what I've seen, I was able to put this together, but it doesn't resize any layers
Any insight?
Code:
(let*
(
(num-layers (car (gimp-image-get-layers image)))
(layer-ids (cdr (gimp-image-get-layers image)))
)
)
(I haven't done anything with multiple return values before, but from some quick googling this seems to be the right way to do that)
I haven't been able to find terrific documentation on looping in Scheme. Based on what I've seen, I was able to put this together, but it doesn't resize any layers
Code:
(define layer-resize
(lambda (a-layer layer-ids)
(gimp-layer-resize-to-image-size a-layer)
)
)
Any insight?
Modder/Skinner at MarvelMods.com using GIMP to create, edit, and export textures and previews more efficiently.
My GIMP scripts hosted on GitHub
My GIMP scripts hosted on GitHub