[Gimp-user] Script Help - Basic Macro

2017-02-08 Thread programmer_ceds
I would suggest adding the following two lines at the start of your function:: (gimp-image-undo-group-start image) (gimp-context-push) and the following two lines at the end: (gimp-context-pop) (gimp-image-undo-group-end image) The 'undo' statemen

[Gimp-user] Script Help - Basic Macro

2017-02-07 Thread adreasler
It took longer than I expected, different sample scripts take different approaches, and it's hard to week out what is and isn't important, but I finally got it worked out. It's a really limited-purpose script, But I was just looking for a way to speed up the file tab preparation after getting the

[Gimp-user] Script Help - Basic Macro

2017-02-07 Thread adreasler
>You could try using the following function calls: > >gimp-get-active-layer >gimp-layer-copy (returns the ID of the new layer) >gimp-set-active-layer (not sure if you will need this) >whatever functions you need to make the required changes I was only using the console to work out what commands I n

[Gimp-user] Script Help - Basic Macro

2017-02-07 Thread programmer_ceds
You could try using the following function calls: gimp-get-active-layer gimp-layer-copy (returns the ID of the new layer) gimp-set-active-layer (not sure if you will need this) whatever functions you need to make the required changes gimp-image-merge-down To get started I would use the browse fun

[Gimp-user] Script Help - Basic Macro

2017-02-07 Thread adreasler
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 pixel