I'm trying to self-taught about writing a script-fu script in GIMP and trying to create a simple script, a "New image". When I'm trying to run it it will give me the error "Not enough arguments". What am I missing? Thank you in advanced.
Code:
(define (script-fu-new-image theImage theLayer)
(let* ((theImage (car (gimp-image-new 500 500 RGB)))
(baseLayer (car (gimp-layer-new theImage 500 500 RGB-IMAGE "Wood" 100 LAYER-MODE-NORMAL)))
)
(gimp-image-undo-group-start theImage)
(gimp-image-insert-layer theImage baseLayer 0 0)
(gimp-drawable-fill theLayer FILL-WHITE)
(gimp-display-new theImage)
(gimp-image-undo-group-end theImage)
)
)
(script-fu-register
"script-fu-new-image"
"<Image>/File/Create/New image"
"New image"
"Creates a New image"
"Pocholo"
"Pocholo"
"March 2020"
""
)