Monday, August 9, 2010

Code snippets. Introduction to Python scripting for Blender 2.5x

Update: The examples in the original document from August do not work anymore, due to changes in Blender's python API. A second edition, updated for Blender 2.54 and with many new examples, can be downloaded from

http://rapidshare.com/files/425538067/Code_snippets_updated_for_Blender_254_2010_10_17.zip

Major changes:
* The scripts work with Blender 2.54. More precisely, they have been tested with Blender 2.54.0 rev 32510, compiled from svn, on Ubuntu 10.04 64 bit.
* User interfaces (panels, buttons, properties, menus, polling).
* Simulations (cloth, softbodies, particle fire, smoke, rigid bodies, fluids).
Since the API is now supposed to have stabilized, there is a fair chance that most scripts will continue to work for the foreseeable future.



Original post: Time for some shameless self-promotion with only a slight connection to MakeHuman.



I have written a little cookbook on Python scripting in Blender 2.5x. The connection with MH is that I picked up some knowledge about the new Python API when I ported the MHX importer to Blender 2.5. After a while I realized that I had learnt something that was of interest to many people, but no coherent information about it was readily available. With 2,500 downloads in less than a week, I suppose that the cookbook turned out to be useful.

Announcement
Blenderartists thread
Pdf download

4 comments:

  1. Yes, in fact I was informed by marc about this a bit earlier :) you did a great job Thomas! Congrats. The more professional way is to put this book in makehuman's tuxfamily download folder, rather than rapidshare. If you don't mind Ill add this in our tuxfamily download folder and then change the PDF download link there.

    BTW: Rapidshare seems to be down at the moment.

    ReplyDelete
  2. Having modified a few of the older scripts I had to work with 2.52, I must say thank you for doing this, so that people don't have to go dig into the mailing lists/source to find answers.

    ReplyDelete
  3. Thank You Thomas, good work;

    ReplyDelete
  4. will this still work for 2.58?

    ReplyDelete

© MHteam 2001-2010