new python submodule. eg.

from bpy.app import binary_path, version, version_string, home

can add constant variables from blender here as needed (maybe functions too... bpy.app.memory_usage() ?)
This commit is contained in:
2010-01-02 23:14:01 +00:00
parent e7d863cee5
commit 04d0261c37
7 changed files with 34 additions and 9 deletions

View File

@@ -361,7 +361,7 @@ def write(filename, objects, scene,
file = open(filename, "w")
# Write Header
file.write('# Blender3D v%s OBJ File: %s\n' % (bpy.version_string, bpy.data.filename.split('/')[-1].split('\\')[-1] ))
file.write('# Blender3D v%s OBJ File: %s\n' % (bpy.app.version_string, bpy.data.filename.split('/')[-1].split('\\')[-1] ))
file.write('# www.blender3d.org\n')
# Tell the obj file what material file to use.