Post Reply 

Gimp Script Help

Sep 22, 2012, 20:12
Post: #1
Information Gimp Script Help
Hello, recently I have been trying to learn Script-Fu for GIMP. I am running 2.8 and I am trying to create a new image but it never shows up. I was wondering if anybody here could help. This is the code.

Code:
(define (new-img)
(let* ((image (car (gimp-image-new 100 100 GRAY)))
(layer (car (gimp-layer-new image 100 100 GRAY-IMAGE "Random" 100 NORMAL-MODE)))
(gimp-image-insert-layer image layer 0 -1)
(gimp-display-new image)
)))
(script-fu-register
"new-img"
"<Image>/File/Create/New Image"
"Creates a New Image"
"Malachi"
"Malachi"
"September 2012"
""
)
Find all posts by this user
Quote this message in a reply
Sep 23, 2012, 00:45
Post: #2
RE: Gimp Script Help
Wow I feel stupid. I completely forgot about that. Thanks.

Also, with Python, is there a procedure browser for that too? I might try that sometime.
Find all posts by this user
Quote this message in a reply
Sep 23, 2012, 00:56
Post: #3
RE: Gimp Script Help
Ok, I just tried that, I added (gimp-displays-flush) right after (gimp-image-new image), and it still didn't work. I click the button that says New Image, and nothing happens. The script is in C:\Users\myusername\.gimp-2.8\scripts and is saved as a .scm file. Would there be anything wrong with that?
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  addonCollectionManager-3.0 on Gimp 2.10.2 (Solved) Pocholo 0 61 Yesterday 02:26
Last Post: Pocholo
  Gimp 2.10 with old vignette from Plugin registry. DenisT 2 122 May 19, 2018 20:42
Last Post: DenisT
  Problems with a bat script :( ThaUnknown_ 1 323 Mar 26, 2018 21:14
Last Post: paynekj
  having trouble doing multiple cuts on gimp gloege 1 257 Mar 20, 2018 11:47
Last Post: paynekj
  Script-fu ordered file list vnicent 1 169 Mar 19, 2018 17:33
Last Post: paynekj

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS