[Bf-python] GetRawFromObject no workies? and lil fname func
Campbell Barton
cbarton at metavr.com
Sun Jun 13 08:39:30 CEST 2004
Just trying to speed up my obj exporter by sing GetRawFromObject rather
then transforming each vert and normal by the objects matrix.
It dosent work a bit- no matrix is applied at all, is theis know?
Also, I wrote a small fun for making names for exporting.
this will turn myfile.blend into myfile.bvh,
newFName('obj') # will make the ext an obj
#==================================================#
# New name based on old with a different extension #
#==================================================#
def newFName(ext):
return Get('filename')[: -len(Get('filename').split('.', -1)[-1]) ] + ext
...
....
.........
...
Blender.Window.FileSelector(saveBVH, 'SELECT NEW BVH FILE', newFName('bvh'))
More information about the Bf-python
mailing list