PYTHON API - Where is it?

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

lisabeeren
Posts: 15
Joined: Mon Oct 28, 2002 9:48 am

PYTHON API - Where is it?

Postby lisabeeren » Tue Oct 29, 2002 3:22 am

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.

dittohead
Posts: 122
Joined: Mon Oct 14, 2002 2:49 am

Postby dittohead » Tue Oct 29, 2002 5:16 am

http://www.python.org/

i think thats what you want.
dittohead

lisabeeren
Posts: 15
Joined: Mon Oct 28, 2002 9:48 am

sorry, I mean Blender Python API

Postby lisabeeren » Tue Oct 29, 2002 8:45 am

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.

beatabix
Posts: 73
Joined: Fri Oct 18, 2002 1:12 am

Postby beatabix » Wed Oct 30, 2002 12:18 am

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]

ray_theray
Posts: 49
Joined: Wed Oct 16, 2002 3:05 am
Location: NM, US
Contact:

Postby ray_theray » Wed Oct 30, 2002 5:27 am

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).

jms
Posts: 327
Joined: Sat Oct 19, 2002 3:04 pm

Postby jms » Wed Oct 30, 2002 7:08 pm

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.
Zoo-3D.Blender, Ze French-Speaking Community SKB My french book about Blender.

calli
Posts: 63
Joined: Wed Oct 16, 2002 10:59 am
Contact:

Postby calli » Thu Oct 31, 2002 10:38 am

Also Zr's Docbrowser still works fine! Also to get through the URL mentioned above.

carsten.


Return to “Python”

Who is online

Users browsing this forum: Google [Bot] and 0 guests