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

@@ -651,7 +651,7 @@ def write(filename, batch_objects = None, \
}''' % (curtime))
file.write('\nCreationTime: "%.4i-%.2i-%.2i %.2i:%.2i:%.2i:000"' % curtime)
file.write('\nCreator: "Blender3D version %s"' % bpy.version_string)
file.write('\nCreator: "Blender3D version %s"' % bpy.app.version_string)
pose_items = [] # list of (fbxName, matrix) to write pose data for, easier to collect allong the way