Re: [Gimp-user] gimp 2.2 -> 2.4, python-fu: what's the difference?

2008-08-27 Thread Kristian Rink
Hi Joao;

and first off, thanks a bunch for your pointer. :)

Joao S. O. Bueno wrote:
[..]
> You might just try to load your script with straight with python, to 
> check for syntax errors, since if there is a python syntax error, 
> gimp will just spill out an obscure uninformative error  message 
> instead of the traceback of the script.

Actually yes, that did resolve my problems. Seems copying the script across
the machines somehow messed my charset up so python complained about illegal
characters while starting up. Thanks loads for your help on that. :)

Cheers,
Kristian

-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab:
[EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 "One dreaming
alone, it will be only a dream; many dreaming together is the beginning of a
new reality." (Hundertwasser)
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] gimp 2.2 -> 2.4, python-fu: what's the difference?

2008-08-26 Thread Joao S. O. Bueno
On Tuesday 26 August 2008, Sven Neumann wrote:
> Hi,
>
> On Tue, 2008-08-26 at 21:43 +0200, Kristian Rink wrote:
> > - The package seems to be installed in the appropriate version
> > matching my Gimp:
> >
> > [EMAIL PROTECTED]:~ > dpkg -l|grep gimp-python
> > ii  gimp-python   
> > 2.4.6-1ubuntu1~hardy1 Python support and plugins for GIMP
>
> It should just work then. python-fu in GIMP 2.4 introduced a
> slightly changed syntax for registering python scripts, but the API
> was kept backward-compatible, so your old scripts should just
> continue to work.
>
Indeed - 
Kristian, jsut start GIMP from the terminal and check for an error 
output.  
You might just try to load your script with straight with python, to 
check for syntax errors, since if there is a python syntax error, 
gimp will just spill out an obscure uninformative error  message 
instead of the traceback of the script.


>
> Sven
>
>
> ___
> Gimp-user mailing list
> Gimp-user@lists.XCF.Berkeley.EDU
> https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] gimp 2.2 -> 2.4, python-fu: what's the difference?

2008-08-26 Thread Joao S. O. Bueno
On Tuesday 26 August 2008, Kristian Rink wrote:
> Folks;
>
> dealing with python-fu quite a while ago (early gimp 2.2, I guess),
> I haven't dealt with this for quite a while, just to stumble across
> it once again by now, figuring out a few things obviously changed:
>
> - Initially, I used to write up a script, dump it to
> .gimp/plug-ins, start the Gimp and find its procedures using the
> gimp Procedure Browser searching for "python-fu". It's not the case
> anymore now, despite the file being still in .gimp-2.4/plug-ins/
> and being marked executable and the code structure not having
> changed.
>
> - Likewise, I used something like this to register the script with
> The Gimp:
>
> register(
>”python_fu_mergesofned”,
>”merge picture with a blurred version of itself”,
>”merge picture with a blurred version of itself”,
>”Kristian Rink”,
>”Kristian Rink”,
>
>”2005″,
>”/Python-Fu/z428/LayeredSoftness”,
>”RGB*,GRAY*”,
>[],
>[],
>
>mergesofned)
>
>
> ... which obviously doesn't work again as the /Python-Fu
> menu is gone and I fail to relocate the menu entry elsewhere, no
> matter what I enter as menu path (/Filters/Python/...
> failed...). What to do here? Is there some pointer outlining how to
> deal with python scripts in Gimp 2.4?
>

Hi Kristian -

there are no comaptibility changes in python-fu from gimp-2.2 to 
gimp-2.4

You should watch the output of GIMP to the terminal to see if any 
errors (like a syntax error due to a missplaced punctiation 
character) is happening. Otherwise, as you see no "python" 
or "python-fu" entrie son you rmenus at all - it looks like you 
simply don-ṫ have gimp-python installed for your new gimp. (If ther 
eis no python-fu entry under your "xtns" menu on the toolbox, then it 
is really not there)

If you are on Linux, just look for a package named "gimp-python" or 
similar. 

That said, an easy way to find out plug-ins when you don't know where 
in the menus they are, is to use the "plug-in browser" (which on 2.4 
lives on the "Xtns" menu).

Regards,

js
-><-

> Any help / hints greatly appreciated. :)
>
> Cheers & best regards,
> Kristian
>
> ___
> Gimp-user mailing list
> Gimp-user@lists.XCF.Berkeley.EDU
> https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] gimp 2.2 -> 2.4, python-fu: what's the difference?

2008-08-26 Thread Sven Neumann
Hi,

On Tue, 2008-08-26 at 21:43 +0200, Kristian Rink wrote:

> - The package seems to be installed in the appropriate version matching
> my Gimp:
> 
> [EMAIL PROTECTED]:~ > dpkg -l|grep gimp-python
> ii  gimp-python2.4.6-1ubuntu1~hardy1
> Python support and plugins for GIMP

It should just work then. python-fu in GIMP 2.4 introduced a slightly
changed syntax for registering python scripts, but the API was kept
backward-compatible, so your old scripts should just continue to work.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] gimp 2.2 -> 2.4, python-fu: what's the difference?

2008-08-26 Thread Kristian Rink
Hi there;

Sven Neumann schrieb:
>> ... which obviously doesn't work again as the /Python-Fu menu is gone
>> and I fail to relocate the menu entry elsewhere, no matter what I enter as
>> menu path (/Filters/Python/... failed...). What to do here? Is there
>> some pointer outlining how to deal with python scripts in Gimp 2.4?
> 
> Are you sure that you have the GIMP Python extension installed at all?

Well... to put it this way: As sure as can be:

- The package seems to be installed in the appropriate version matching
my Gimp:

[EMAIL PROTECTED]:~ > dpkg -l|grep gimp-python
ii  gimp-python2.4.6-1ubuntu1~hardy1
Python support and plugins for GIMP

- In Gimp, there is an "Extras" -> "Python-Fu" menu which, so far, just
contains a "console".

- Using the "Procedure browser" querying for python-fu leaves me finding
a few entries, yet none of these provided by my own scripts...

I actually would question my installation if it wasn't for these
things... Could anything still be wrong here? Invoking the python
console from within Gimp also works well, same as does "import gimpfu"
in the python console. Anything else I could be overlooking so far?
Platform is Ubuntu 8.04 by the way...

Thanks in advance and best regards,
Kristian
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] gimp 2.2 -> 2.4, python-fu: what's the difference?

2008-08-26 Thread Sven Neumann
Hi,

On Tue, 2008-08-26 at 14:07 +0200, Kristian Rink wrote:

> ... which obviously doesn't work again as the /Python-Fu menu is gone
> and I fail to relocate the menu entry elsewhere, no matter what I enter as
> menu path (/Filters/Python/... failed...). What to do here? Is there
> some pointer outlining how to deal with python scripts in Gimp 2.4?

Are you sure that you have the GIMP Python extension installed at all?


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user