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.
PYTHON API - Where is it?
Moderators: jesterKing, stiv
-
- Posts: 13
- Joined: Mon Oct 28, 2002 9:48 am
sorry, I mean Blender Python API
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.
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.
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]
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]
-
- Posts: 47
- Joined: Wed Oct 16, 2002 3:05 am
- Location: NM, US
- Contact:
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
. Hmm, I'm not so keen on the whole stdout stuff (I really am a file.write man
)
(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).
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


(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).
In b2.23, you shouldn't touch the NMesh module.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...
use b2.25, instead.
Zoo-3D.Blender, Ze French-Speaking Community SKB My french book about Blender.