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
  gap doesn't works in GIMP 2.10 tagardo 1 58 Mar 22, 2019 11:25
Last Post: paynekj
  How to install Gimp Heal Plugin (Linux)? ciararseeley 2 95 Mar 20, 2019 09:19
Last Post: paynekj
  Gimp for Mac with wavelet sharpen throast 1 75 Mar 20, 2019 09:18
Last Post: paynekj
  how to lock the guides in GIMP sureshsaragadam 1 648 Feb 7, 2019 12:23
Last Post: paynekj
  Script Fu top menu Dutchy 1 534 Feb 7, 2019 12:23
Last Post: paynekj

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS