RFX-GIMP

Artifact [f70b40557b]
Login

Artifact f70b40557b77e53b125287bbc11b90a771e2dfe2:

Wiki page [loop-code] by saul 2012-03-27 12:47:34.
D 2012-03-27T12:47:34.829
L loop-code
P 3334c6a1218951eeada05f93143aa2376a44b1f5
U saul
W 532
The loop code is executed once for each frame being processed.


Typically, an effect's loop code would appear quite similar to the following:

<pre>&rfx_sendmsg (
  qq{
    (let* ((input-file (string-append "$curtmpdir" DIR-SEPARATOR "$in"))
           (image (car (gimp-file-load RUN-NONINTERACTIVE input-file input-file)))
           (layer (car (gimp-image-get-active-layer image))) )
      ;
      ; Your script code goes here, modifying the 'image'
      ;
      (rfx-save-frame image "$out") )
    }
  );</pre>
Z 1b07e48f7e14f81abe33b6ed838c4e5e