- small updates to scripts and bpython docs, also fixed two warnings;

- added function Blender.sys.exists(path) to check if a given file exists;
- forgot to mention: in my previous commit the blender.html file was also updated slightly.
This commit is contained in:
Willian Padovani Germano
2004-06-10 15:14:49 +00:00
parent a6d077bae2
commit a23c6a71da
8 changed files with 209 additions and 172 deletions

View File

@@ -333,7 +333,9 @@ def motion2bvh(frame, chennelList, nodeObjectList):
return motionData
def saveBVH(filename):
if filename.find('.bvh', -4) <= 0: filename += '.bvh' # for safety
# Here we store a serialized list of blender objects as they appier
# in the hierarchy, this is refred to when writing motiondata
nodeObjectList = []

View File

@@ -65,7 +65,9 @@ from Blender import *
NULL_MAT = '(null)'
def save_obj(filename):
if filename.find('.obj', -4) <= 0: filename += '.obj' # for safety
file = open(filename, "w")
# Write Header