Python-howto, Python-Scripts and Plug-Ins

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
Old 11 November 2004   #1
Python install-howto, Python-Scripts and Plug-Ins

updateBlender is extendable with python-scripts. Just as maya uses MEL and 3DS-Max uses MAX-script, blender uses python.

1. How to successfully install python
2. List of some python scripts and plug-ins

1.In order to run certain scripts, you will need a fully installed version of python.
You can get it at:
O.K. as many questions will come about python and plug-ins, here we go:

If you are on OSX, you should be fine, as it comes with python 2.3 installed.

On windows XP you need to install it on: C:\python23

On Linux it depends: newer distros come with python 2.3 allready installed, older ones (like mine) with older versions.
Attention: rpm based distros like rh and fc1 have many programs that depend on the already installed python versions (in my case python2.2.x), so don´t just get the rpm and click on it!! It will mess up your whole system (this is a known issue as seen on work around: load down the source and build it yourself with the usual ./configure, make procedure, check the install instructions coming with the source!! If you do so, you might have to rename some of the path ending into /../python2.3 (depending on your path in python)

Next step is to set the PYTHONPATH

On XP, there should be a PYTHONPATH in your environment variables. Normally there is no issue here, if you installed it to your C:\ partition

Now, after our python-install, we want blender to recognize the PYTHONPATH?

First thing to do is open python and write the first 2 lines as seen here and hit return:
On winXP you get something like this:

>>> import sys
>>> print sys.path
['', 'c:\\python23', 'c:\\python23\\dlls', 'c:\\python23\\lib', 'c:\\python23\\lib\\plat-win', 'c:\\python23\\lib\\lib-tk', 'c:\\python23\\pil']

On Linux it would look like this:

>>> import sys
>>> print sys.path
['', '/usr/local/lib/python2.3', '/usr/local/lib/python2.3/plat-linux2', '/usr/local/lib/python2.3/lib-tk', '/usr/local/lib/python2.3/lib-dynload', '/usr/local/lib/python2.3/site-packages']

Now open blender, and set your pythonpath in the "user preferences" (i) window >pathes>Python
Either /usr/local/lib/python2.3
Or C:/python23/lib

Now open a new text window in blender and write again:
Import sys
Print sys.path and hit alt-p

(you actually just executed your first python-script)

Then check your dos or bash-console (rember to start blender on linux allways with /path_to/blender):and
-- there you have it!! Its done!! You see the same path in the blender console.--
Not there?
If not:
Then you have to create on win XP an environment variable PYTHONPATH

On linux you have to do this:
vi /home/user_name/.bashrc there you add:
export PYTHONPATH=/usr/local/lib/python2.3:/usr/local/lib/python2.3/plat-linux2:/usr/local/lib/python2.3/lib-tk:/usr/local/lib/python2.3/lib-dynload:/usr/local/lib/python2.3/site-packages

dont just copy and paste this text here! it might differ on your system, so get the path from python and edit it: all ',' become :

now you should be fine.

2: List of python-scripts and plug-ins

O.K. now python is installed all right lets start and get bussy with some of those sweets.
Important note:
Blender 2.23/2.25 -2.27 works with python 2.0
Blender 2.28-2.32 works with python 2.2
Blender 2.33- until now works with python 2.3

Some scripts you find in the www, might not work with current versions of blender. Pls. refer to the documentation on their home-sites:
To execute python-scripts: if not explained in a different way, just open the .py in blenders text-window and hit >alt-p
Plug-ins are .dll on win and .so on unix. there are texture plug-ins and sequenz-editor plug-ins. to open them just add new> plug-in and select it from your folder where the plug-ins are. you can set the path to the plug-in folder in user-preferences

the list is in random order and far from complete! there must be like 1000 scripts out there.

read this first:
Blender Plugin Repository >collection of sequenz and texture plug-ins and python scripts

for gamers, various export scripts:

blenderman .rib export (developement freeze)

povanim-pov-ray exporter

Fiber > create good looking grass
tut for fiber:

L-system >tree maker

beast >city-builder; also can fake hair and fur with alpha maps

makehuman > create a fully rigged human mesh with a couple of clicks

sculpMesh >Zbrush style sculpting

ter2blend > use terragen landscapes and animations in blender (development interrupted)
script maintenance (adapt it to python 2.3)
original site:

blender people > attempt of a crowd simulation (still in developement)
oher scripts by the author:

various scripts

some older stuff:

there are many, many more, I will update this list, when I find a minute and did not want to add to many links for scripts only working with older versions.

so authors and users of scripts:
pls. post a link to the home-site of your favorite scripts here!!
dont post a direct download link, as scripts get updated quickly and we want to get the latest versions and some man-pages

cool stuff from ideasman
bebo birras

Last edited by bbirras : 04 April 2005 at 12:15 PM. Reason: update
Old 11 November 2004   #2
Don't forget the script repository on
Old 11 November 2004   #3
Cool thread Birras,

The L-Systen version you link to at Blenderdungeon is out of date for 2.35. Better link to the 2.28 here:
and the tutorial here:
Old 11 November 2004   #4
Flash exporter for blender

I found this last week and thought it would be cool to add this here. Its a python script.

Old 12 December 2004   #5
i've followed all of the steps, but i get a quite different result at the end, and now i'm wondering: how would i go about creating a new environment variable?
the result i get in my blender console mentions the blender directory itself, not the python dir.
The only problem i can see is that maybe it can't handle python 2.4?
Old 12 December 2004   #6
You're right, Blender's internal Python interpretor is coded for Python 2.3.x
Old 01 January 2005   #7
great timing

hey guys and girls

i'm another newbie. just created an account and logged on to ask a couple of python questions and found all this. gonna trawl through it all now and see if it sorts me out. thanks for the mind-reading tricks. i look forward to having my next question answered before i ask it. lol
Old 03 March 2005   #8

Thank You Thread Maker But My Brother We Need To Learn
How To Programm We Don't Need A Ready Scripts
Thnxz Man For Your Help It's Not Bad
Old 03 March 2005   #9
Question Newby Question - Python 24 on XP

I have Python 24 in C:\Python24 on XP. I am wondering :

a) Can Blender 235 use this - or must it be Python23?

b) If Blender 235 must use Python23, will it be ok to install Python23 to C:\Python23, while Python24 remains in its presently installed location?

Help on this one would be much appreciated ... I can paint a portrait in oils, compose a string quartet, use power tools, bake a black forest cake - but I always thought a Python was a b-i-i-i-g snake! Who knew? Well, it probably still is, whichever form it takes ... it's still a bit scarey to me...

नमस्ते Namasté

Last edited by butterpaw : 03 March 2005 at 10:57 PM.
Old 03 March 2005   #10
Hello butterpaw

Python24 will be implemented in the next release of Blender. Most scripts out their today are using Python23 which is what blender already uses internally so you should have no problems. I have Python24 installed myself and have not had any issues running scripts off the internet yet.


Old 03 March 2005   #11
Thanks Cybersorcerer!

I will move up to the next version of Blender as soon as it becomes availalble... and in the meantime ..

I installed Python23 in its own folder right next to Python24 (in it's own folder) on the C drive. When I fired up Blender - voila! no error messages.... and so far, no signs of any compatibility problems.

I'm getting used to the Blender interface, and find it to be very elegant. But I see it's not amenable to experimentation until one is very familiar with the interface... that's ok.. I'll get there.

thanks again,
नमस्ते Namasté

Last edited by butterpaw : 03 March 2005 at 10:57 PM.
Old 03 March 2005   #12
I noticed your reference to Blender 2.35 ... were you aware that version 2.36 (stable) is currently available?
Klatu ... birada ... nicto (DYeater at Elysiun and Blenderman ... not sure why I changed my nick here)
Old 03 March 2005   #13
Thanks GuyGrr!

In fact I had just noticed it today - I'll be installing it tonight - I will really appreciate the expanded undo capabilities. ..... although I am getting better at saving after every successful step.

After being proficient with other software, I feel really clutzy with this one... but I'll get better at it...
नमस्ते Namasté

Last edited by butterpaw : 03 March 2005 at 10:52 PM.
Old 03 March 2005   #14

bbirras: Many thanks, this really helped me out, I’ve been using the standard scripts for a while but have been having some problems implementing new ones, this helped me to finally I managed to correctly normal map a character model, thanks!
Old 04 April 2005   #15
glad to hear this
bebo birras
reply share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 05:36 PM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.