Page 1 of 1

PYTHON API - Where is it?

Posted: Tue Oct 29, 2002 3:22 am
by lisabeeren
So does anyone know where to get the up-to-date Python API? I've looked everywhere. The official (most uptodate) one should reside somewhere on this site shouldn't it?

thanks.

J.

Posted: Tue Oct 29, 2002 5:16 am
by dittohead
http://www.python.org/

i think thats what you want.

sorry, I mean Blender Python API

Posted: Tue Oct 29, 2002 8:45 am
by lisabeeren
I've got one that dates to early 2001 ithink... is that the most uptodate?

I assume it isn't, because

Blender.getCurrentScene()

makes the interpreter say 'invalid atttribute' or something like that.. and that's in that API and most of the tuts.

J.

Posted: Wed Oct 30, 2002 12:18 am
by beatabix
erm, python is supposed to be self duocmenting, isn't it?

i can't remember the code off the top of my head, but you can display the functions and things in the console window using "print".

some proper python hacker could tell you how. ask theeth, eeshlo, green, someone like that.

also, i don't know if this works with 2.25 or 2.25b. i know there was a bug in 2.23 that prevented this from working.

BEAT
[/code]

Posted: Wed Oct 30, 2002 5:27 am
by ray_theray
If you mean the Python API in Blender, this script should do it:
http://www.blenderbuch.de/tutor/python2 ... 2_eng.html
The first script on the page (docstrings.py) is the one. However, I've had to mess a little with it to get it to work at all (it crashes blender), and then it chokes after a certain part :x. Hmm, I'm not so keen on the whole stdout stuff (I really am a file.write man :wink: )

(NB about the webpage: at the bottom are the links to the tgz and zip with all the files for the page - should include docstrings).

Posted: Wed Oct 30, 2002 7:08 pm
by jms
ray_theray wrote:... However, I've had to mess a little with it to get it to work at all (it crashes blender), and then it chokes after a certain part :x...
In b2.23, you shouldn't touch the NMesh module.
use b2.25, instead.

Posted: Thu Oct 31, 2002 10:38 am
by calli
Also Zr's Docbrowser still works fine! Also to get through the URL mentioned above.

carsten.