Using ogrenew/Tools/BlenderExport

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
Post Reply
Kender
Gnoblar
Posts: 12
Joined: Wed Sep 21, 2005 10:37 pm

Using ogrenew/Tools/BlenderExport

Post by Kender »

I'm trying to export a mesh from Blender, but I'm not sure how to use the ogreexport.py script. It looks like it's a python script, but it's not using the python interpreter (the first line is #!BPY not #!/usr/bin/python).

I tried running python ./ogreexport.py but it couldn't find the module Blender. I have blender installed, but I don't see any python libraries as part of the install.

Can anyone explain how to get this setup and working?
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

It should be copied to the Blender scripts directory - it is not meant to be run stand-alone - it is an export script to be used from within Blender. :wink:
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8
Contact:

Post by haffax »

ogrenew/Tools/BlenderImporter/Docs contains the documentation on the exporter. Read it.
team-pantheon programmer
creators of Rastullahs Lockenpracht
Post Reply