[Gimp-developer] Re: script-fu gimp-flip problems? procedural database execution failed

2004-08-11 Thread Alan Horkan

On Tue, 10 Aug 2004, Alan Horkan wrote:

 Date: Tue, 10 Aug 2004 22:26:39 +0100 (BST)
 From: Alan Horkan [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: script-fu gimp-flip problems? procedural database execution
 failed


 I'm trying to port a script from gimp 1.2 to gimp 2

here is the currently slightly broken gimp 2.0 version, you can find the
relevant part of the file by searching for gimp-flip and it is clearly
marked by cursing in block caps which some may find offensive
http://matrix.netsoc.tcd.ie/~horkana/dev/gnome/gimp/script-fu/scripts/pattern-swirly.scm

and here is the perfectly working gimp 1.2 version
http://matrix.netsoc.tcd.ie/~horkana/dev/gnome/gimp/script-fu/scripts/gimp-1.2/pattern-swirly.scm

there is a commented out line
;(gimp-flip temp-drawable2 0)
as well as
(script-fu-transform temp-image temp-drawable2)

which is simply a wrapper for (gimp-flip drawable 0) because I was trying
various differnt things (invert, rotate, and I eventually decided on
flip).
I did try various combinations (gimp 1.3.x and gimp 2.0.x on windows).
I haven't yet tried gimp 2 on linux becuase I do not have a copy
conveniently available at the moment.

 everything else works fine except gimp-flip
 procedural database execution failed

 Any ideas?

thanks for the suggestion Simon.

Sincerely

Alan Horkan

___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Re: script-fu gimp-flip problems? procedural database execution failed

2004-08-11 Thread Sven Neumann
Hi,

Alan Horkan [EMAIL PROTECTED] writes:

 On Tue, 10 Aug 2004, Alan Horkan wrote:
 
  Date: Tue, 10 Aug 2004 22:26:39 +0100 (BST)
  From: Alan Horkan [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: script-fu gimp-flip problems? procedural database execution
  failed
 
 
  I'm trying to port a script from gimp 1.2 to gimp 2
 
 here is the currently slightly broken gimp 2.0 version, you can find the
 relevant part of the file by searching for gimp-flip and it is clearly
 marked by cursing in block caps which some may find offensive

I just had a quick look but it seems that your script is trying to
flip a drawable that hasn't been added to any image yet. GIMP 1.2 let
you get away with such things but GIMP 2.0 is more strict. You
absolutely need to add a drawable to an image if you want to perform
further actions on it.


Sven
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Re: script-fu gimp-flip problems? procedural database execution failed

2004-08-11 Thread Simon Budig
Alan Horkan ([EMAIL PROTECTED]) wrote:
  everything else works fine except gimp-flip
  procedural database execution failed
 
  Any ideas?

The script for gimp 2.0 differs in an important detail from the script
for 1.2: The newly created layer (gimp-layer-copy temp-drawable TRUE)
does not get added to the image. The old script does this (within
copy-add-offset).

You might want to try doing this in the new script as well. When I
changed it here gimp-flip seems to work (although the pattern is
probably not yet the desired one...).

Hope this helps,
Simon
-- 
  [EMAIL PROTECTED]  http://simon.budig.de/
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer