RSS/Atom feed Twitter
Site is read-only, email is disabled

Python Docs

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Python Docs Samuel 27 Sep 22:41
  Python Docs paul taney 28 Sep 03:46
  Python Docs Sven Neumann 29 Sep 10:59
Samuel
2008-09-27 22:41:43 UTC (about 16 years ago)

Python Docs

Where can I find the actual Python docs for GIMP? I know this site: http://www.gimp.org/docs/python/index.html But it doesn't seem to be complete. For example how do I get the color of a pixel?
And the docs are not in the 2.4.7 and the 2.5.3 sources, I downloaded.

I'm pretty new in Python and it's not easy to programm sth. for GIMP with so few docs and examples around.

I want to write a plugin which creates a depthmap from a stereo pair and the error I get is:
error: could not set 4-element pixel (100, 100) on drawable (ID 5)

Source here: http://pastebin.furver.se/p5xh8byi7/

Thx in advance for answers, Samuel

paul taney
2008-09-28 03:46:04 UTC (about 16 years ago)

Python Docs

Hi Samuel,

I am also a new user of gimpfu.py

If you"re on unix you find there are only a dozen examples that come with 2.4.7. It"s not enough information. I"ve resorted to groveling over the scheme code; there"s alot of it and its pretty straightforward to translate some things.

% find . -name \*scm | wc -l 313

Did you see this one? http://docs.gimp.org/en/plug-in-retinex.html

And tell me what you find, please. paul

----
% find . -name \*scm -exec grep gimp-image {} \; | \ grep -v width | grep -v heigth | perl -ne '@a=split; \ print "$a[0]\n"' | sort -d | uniq > ALL_IMAGE_CMDS.txt

--- On Sat, 9/27/08, Samuel wrote:

From: Samuel
Subject: [Gimp-developer] Python Docs To: gimp-developer@lists.XCF.Berkeley.EDU Date: Saturday, September 27, 2008, 4:41 PM Where can I find the actual Python docs for GIMP? I know this site:
http://www.gimp.org/docs/python/index.html But it doesn't seem to be complete. For example how do I get the color
of a pixel?
And the docs are not in the 2.4.7 and the 2.5.3 sources, I downloaded.

I'm pretty new in Python and itfor GIMP with so few docs and examples around.

I want to write a plugin which creates a depthmap from a stereo pair and
the error I get is:
error: could not set 4-element pixel (100, 100) on drawable (ID 5)

Source here:
http://pastebin.furver.se/p5xh8byi7/

Thx in advance for answers, Samuel

--- On Sat, 9/27/08, Samuel wrote:

From: Samuel
Subject: [Gimp-developer] Python Docs To: gimp-developer@lists.XCF.Berkeley.EDU Date: Saturday, September 27, 2008, 4:41 PM Where can I find the actual Python docs for GIMP? I know this site:
http://www.gimp.org/docs/python/index.html But it doesn't seem to be complete. For example how do I get the color
of a pixel?
And the docs are not in the 2.4.7 and the 2.5.3 sources, I downloaded.

I'm pretty new in Python and it's not easy to programm sth. for GIMP
with so few docs and examples around.

I want to write a plugin which creates a depthmap from a stereo pair and
the error I get is:
error: could not set 4-element pixel (100, 100) on drawable (ID 5)

Source here:
http://pastebin.furver.se/p5xh8byi7/

Thx in advance for answers, Samuel

Sven Neumann
2008-09-29 10:59:06 UTC (about 16 years ago)

Python Docs

Hi,

On Sat, 2008-09-27 at 22:41 +0200, Samuel wrote:

Where can I find the actual Python docs for GIMP? I know this site: http://www.gimp.org/docs/python/index.html

These docs are very outdated. But unfortunately there is no newer documentation available at this point. I suggest that you have a look at the Python plug-ins that come with the GIMP source code. There are some examples that will probably help you.

Hopefully we will have better Python documentation at some point. Perhaps you want to volunteer to make that happen?

Sven