Instructables

How do I get a Python script to work in Blender?

I am using Blender quite extensively right now, and I would like to be able to import and export md5 models. Unfortunately, Blender does not do this natively, so I had to find and download a Python script.

That's when the trouble started.

I am new to Python, so I have no idea where to properly place the scripts and how to run them. After some searching, I believe I located the correct folder: Blender/contents/MacOS/2.57/scripts

Within this folder are 5 folders. They are as follows:

-addons
-modules
-presets
-startup
-templates

There is also a python folder in the 2.57 folder which contains a library for scripts, but I believe these are for python itself rather than Blender.

The files I am trying to install are as follows:

-blender2md5_v0.94-sauer3.py
-md5-0.5.py
-md5Import_0.5.1.py

I tried opening each of these in terminal to attempt to 'install' them, but got this message:

File "/Applications/blender-2.57-release-OSX_10.5_i386/blender.app/Contents/MacOS/2.57/scripts/modules/md5Import_0.5.1.py", line 33, in <module>
import Blender
ImportError: No module named Blender
(I did not include some command lines because they contain my name and my computer's name.)

What am I doing wrong? Where do I put these files? Is there something wrong with the filenames? Do I have to do anything fancy to get them to run in Blender? Any help is appreciated!

I am running Blender 2.57 on Mac OSX v. 10.6.7 

A-Nony-Mus2 years ago
Have you tried typing "Blender.app" (yes, with the quotation marks)?
mnianliang2 years ago
The scripts you used is for Blender 2.4x(python 2.x), it's incompatible with 2.5x(python 3.x).
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!