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
  PDN Plug-in for GIMP? snoopy55 9 8,667 Jan 29, 2018 08:23
Last Post: jandd661
  Does gimp have optical filter imitations? godek 1 363 Dec 11, 2017 11:40
Last Post: paynekj
  plugin save for web in Gimp 2.9.6 Dkk 1 368 Oct 19, 2017 09:02
Last Post: paynekj
  Request for script chlebna 1 303 Sep 13, 2017 09:35
Last Post: ythgilb
  Request for script - Guillotine + Watermark sunslick 1 384 Sep 4, 2017 08:51
Last Post: ythgilb

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS