- 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:
@@ -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 = []
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user