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
  Run script on action rchav 2 580 Aug 13, 2018 14:57
Last Post: rchav
  Script Fu Errors Gimp 2.10.4 lightsaber jd3481 1 413 Aug 2, 2018 05:13
Last Post: paynekj
  Script-fu script to conversion pdf to image 4ever 12 8,845 Jul 17, 2018 16:01
Last Post: paynekj
  GIMP Resynthesizer Plugin not working Mikkel Andersen 1 555 Jun 26, 2018 16:36
Last Post: paynekj
  Tablet issues with GIMP 2.10 Phoenisca 1 661 May 30, 2018 14:30
Last Post: paynekj

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS