[Gimp-user] Script Help - Basic Macro



I am looking to find some way to automate the following steps:

1) Duplicate the active layer, shifting focus to the duplicate (the standard
effect when selecting Layer>Duplicate layer)
2) Rotate the new active layer 180 degrees (Layer>Transform>Rotate 180)
3) Move the new active layer up 200 pixels
4) Merge the new active layer with the original active layer (Layer>Merge Down)

Since this is just using existing functions within GIMP, it seems like this
should be a simple script to make, however, when testing out the functions I
think I need in the interactive consoles (I've tried this with both the python
console and the script-fu console) All I get are errors, the functions seem to
want the NAME of the layer being manipulated, even the function to GET the layer
name.

I've worked with script files both in Microsoft environments and in *nix, I just
need to figure out how to make this work in a GIMP environment.  All of the
script tutorials I've seen for GIMP seem to be either designed around automated
script-writing software ("First write the pseudocode like this, then run it
through this program which you can no longer find at the other end of this
broken link") or they seem to be talking about a higher level programming
language, writing what looks like mangled C code for 'hello world' programs.

Any help that can be provided would be greatly and humbly appreciated.

-- 
adreasler (via www.gimpusers.com/forums)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]