Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error: Not enough arguments?
#1
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"                          
    ""
    
    

)
Reply


Messages In This Thread
Error: Not enough arguments? - by Pocholo - 04-18-2020, 03:52 PM
RE: Error: Not enough arguments? - by Ofnuts - 04-18-2020, 04:12 PM
RE: Error: Not enough arguments? - by JimmyMarco - 04-19-2020, 07:44 AM
RE: Error: Not enough arguments? - by Ofnuts - 04-19-2020, 09:18 AM
RE: Error: Not enough arguments? - by Pocholo - 04-21-2020, 03:17 AM
RE: Error: Not enough arguments? - by Ofnuts - 04-21-2020, 06:28 AM
RE: Error: Not enough arguments? - by Kevin - 04-21-2020, 12:34 PM
RE: Error: Not enough arguments? - by Pocholo - 04-21-2020, 07:01 PM

Forum Jump: