Grits wrote:
Such as a script command to:
* duplicate a layer.
(define
new-layer (car (gimp-layer-copy
orig-layer TRUE))) ; should use a 'let' variable rather than 'define'
Grits wrote:
* change the layer mode.
(gimp-layer-set-mode
new-layer SCREEN-MODE) ; see PDB Browser for available layer modes
Grits wrote:
* rotate a layer.
(gimp-item-transform-rotate
new-layer (*
angle (/ *pi* 180)) TRUE 0 0) ;
angle should be in degrees
Grits wrote:
And other simple commands.
The PDB Browser is your friend (either "Help->Procedure Browser" or use the "Browse" button in the Script-fu console).
If you can't find what you need in the PDB Browser or don't understand how to use the information, feel free to ask.