Re: [Gimp-user] python-fu script

2008-05-11 Thread Sven Neumann
Hi, On Sat, 2008-05-10 at 18:57 -0300, Joao S. O. Bueno wrote: When caling PDB stuff from a python plug-in, the run-mode parameter is always omited and assumed to be non-interactive That is a very bad design decision. How are you supposed to call a PDB function interactively then? Sven

[Gimp-user] python-fu script

2008-05-10 Thread peter kostov
Hello, I am trying to write a python script. The problematic part of it is: --- snip --- def run_resynthesize(image, drawable, vtileable=1, htileable=1): defalut_args = (0, 0, 0, 0, 0.50, 0.12, 30, 200) args = list(defalut_args)

Re: [Gimp-user] python-fu script

2008-05-10 Thread Sven Neumann
Hi, On Sat, 2008-05-10 at 17:00 +0300, peter kostov wrote: Procedure 'gimp-drawable-width' has been called with an invalid ID for argument 'drawable'. Most likely a plug-in is trying to work on a layer that doesn't exist any longer. And an 'RuntimeError: execution error' message on the

Re: [Gimp-user] python-fu script

2008-05-10 Thread Joao S. O. Bueno
On Sat 10 May 2008 12:45:09 pm Sven Neumann wrote: Hi, On Sat, 2008-05-10 at 17:00 +0300, peter kostov wrote: Procedure 'gimp-drawable-width' has been called with an invalid ID for argument 'drawable'. Most likely a plug-in is trying to work on a layer that doesn't exist any longer.

Re: [Gimp-user] python-fu script

2008-05-10 Thread Joao S. O. Bueno
On Sat 10 May 2008 11:00:57 am peter kostov wrote: Hello, I am trying to write a python script. The problematic part of it is: --- snip --- def run_resynthesize(image, drawable, vtileable=1, htileable=1): defalut_args = (0, 0, 0, 0, 0.50, 0.12, 30, 200) args =

Re: [Gimp-user] python-fu script

2008-05-10 Thread David Gowers
On Sun, May 11, 2008 at 7:27 AM, Joao S. O. Bueno [EMAIL PROTECTED] wrote: The drawable you are passing looks just right. But doesn't the resynthesizer PDB procedure take run-mode as its first parameter? When caling PDB stuff from a python plug-in, the run-mode parameter is always omited and

[Gimp-user] Python-fu script for Placement of pasted selections

2005-12-29 Thread Joao S. O. Bueno Calligaris
On Thursday 29 December 2005 08:43 am, Tristan Miller wrote: 1. Store the top left coordinates (x,y) of the selection. 2. Copy the selection. 3. Switch to the second image. 4. Paste. 5. Move the selection to (x,y). 6. Anchor the selection. sel_transfer.py Description: application/python