Questions tagged [script-fu]

Script-Fu is a version of Scheme embedded in The GIMP, used to automate image manipulation tasks.

Script-Fu is the embedded scripting language of the GIMP image editor. It is based off a dialect of Scheme called TinyScheme, which is nearly R5RS compatible; because of this, general language issues with Script-Fu could benefit from the larger audience of the tag. GIMP's documentation site has a section on scripting which deals with the Scheme language used by Script-Fu.

Script-Fu is intended for automating image manipulation; because of this, it also includes a large library of functions. Questions about the Script-Fu library should always be tagged .

In addition to the Script-Fu plugins provided by The GIMP itself, two repositories of scripts exists at The GIMP Plugin Registry, as well as at GIMP Scripts. In addition, the complete Script-Fu library is accessible through GIMP's Procedure Browser, which includes not only core functions built into GIMP but also functions belonging to any installed plugins.

152 questions
0
votes
0 answers

script-fu variables set from cond but treated as unset

I'm trying to set up a script for raw photos, to allow me to add two copies of the existing file (all taken from ufraw), at different exposures so I can recover shadow and highlight detail. The part for the shadow file is now working, hard-coded to…
0
votes
1 answer

How to shrink selection from two sides in GIMP script?

I need to shrink selection in my GIMP script. Default shrink selection command shrinks the whole selection by given size value in pixels. (gimp-selection-shrink inImage 2) This would shrink selection by 2 pixels. But I don't want to shrink the…
JasonSpine
  • 15
  • 1
  • 10
0
votes
0 answers

gimp - creating layers 2d list

Hello I am trying to convert a bunch of layers ( drawables + masks ) into a 2d list for random access using list-ref. I have failed and I cant see where I am going wrong. The cmyk-list contains garbage. All drawables have been tested with this…
0
votes
1 answer

GIMP Script-Fu Drop Shadow on Text?

I'm trying to create a Script-Fu script that at one point adds a drop-shadow. I use the script-fu-drop-shadow function as seen below (script-fu-drop-shadow image textDrawable 0 7 16 '(0 0 0) 1 FALSE) It works on normal layers, but not text layers…
Kjell
  • 801
  • 7
  • 19
0
votes
1 answer

script-fu multiplication : not enought argument

simple multiplication is failling in my script-fu. the folowing code (print "hello") (print (/ 4 3)) (print (* 3 4)) (print "world") Gives : "hello" 1,333333333.0 Error: ( : 1) not enough arguments Any idea…
Patrice
  • 1,404
  • 1
  • 14
  • 27
0
votes
1 answer

Gimp-Fu/Tinyscheme: unquoting symbols in function-defining macro

I'm attempting to write a tinyscheme macro to define four mostly-identical procedures in GIMP: (macro (define-layer-moving-function body) (let* ( (func-name (cadr body)) (direction (caddr body)) …
mugwhump
  • 90
  • 1
  • 7
0
votes
1 answer

script-fu invalid number of arguments

I want to create an image like notebooke paper, and I thought it is easy if the section of drawing lines is automated. In order to make it, I decided to use gimp's function named 'gimp-rect-select' and specify the small height value. I…
0
votes
1 answer

lisp iterate through list

I just started GIMP script-fu scripting yesterday for a script I need but I have no idea how automate the adding of the layers in the local variables and calling the function for adding the layers to the image. I tried iterating over lists but…
YannisDC
  • 207
  • 1
  • 2
  • 9
0
votes
1 answer

In scheme I keep getting "Error: ( : 1) car: argument 1 must be: pair", why?

I found this page explaining that some of the gimp functions won't return values consistently, so I implemented a do while loop to make sure the functions are returning pairs before using car. Still, I get the error Error: ( : 1) car: argument 1…
JVE999
  • 3,327
  • 10
  • 54
  • 89
0
votes
1 answer

Automating Brush Insertion

Very new to Gimp and unfortunately also in need of producing an output :) I am looking to automate a repetitive task of placing instances of existing brushes in an image. Can anyone point me in the direction of the command that I might use to…
Paul Eden
  • 338
  • 1
  • 3
  • 10
0
votes
0 answers

How to control the pencil in gimp

I'm writing a script in gimp and I want to place several random points on the screen. I placed in my (python) script the two following lines gimp.pdb.gimp_context_set_brush_size(5.0) gimp.pdb.gimp_pencil(drawable,2,p) But this didn't have the…
Yotam
  • 10,295
  • 30
  • 88
  • 128
0
votes
3 answers

Gimp- How can I use a script (``solid-noise``) inside another script?

I want to create a script that call a set of other scripts and run them with specific parameters. Specifically for now, I want to run the solid-noise cloud rendered. I created a script and I call the solid-noise script using …
Yotam
  • 10,295
  • 30
  • 88
  • 128
0
votes
1 answer

GIMP:Script-Fu-script error

I try batch-processing some files with GIMP. Here is the script: (define (script-fu-batch-sofu globexp) (define (sofu-trans-img n f) (let* ((fname (car f)) (img (car (gimp-file-load 1 fname fname)))) (gimp-image-undo-disable img) (gimp-fuzzy-select…
Martin Weber
  • 3,892
  • 4
  • 20
  • 23
0
votes
1 answer

script-fu script not load image under gimp 2.0

I try to make working this script with gimp 2.8 . I don't see script-fu-register in Procedure Browser). I try running with RUN-INTERACTIVE and RUN-NONINTERACTIVE... this script: (define (script-fu-cut-height filename outputfilename myheight) …
0
votes
1 answer

Gimp script-fu with illegal function error

I'm working on my first script-fu and scheme is still not very clear for me. My script works fine but I want to add an other parameter (onlyvisible) and I have a line causing illegal function error in a certain place but not in an other place. Thank…
Alex
  • 653
  • 9
  • 31
1 2 3
10
11