[Bf-python] GetRawFromObject no workies? and lil fname func

Willian Padovani Germano wgermano at ig.com.br
Sun Jun 13 16:30:45 CEST 2004


Hi Campbell,

GetRawFromObject gets a raw mesh (obj data) with all deformations applied -- a
display list mesh.  Matrix is an obj property so is applied later, preserving
the displist until the actual mesh data is changed.  Didn't look at the code in
a while, but I suppose that's what goes on.

> Also, I wrote a small fun for  making names for exporting.
>
> this will turn myfile.blend into myfile.bvh,
(...)
> def newFName(ext):
>   return Get('filename')[: -len(Get('filename').split('.', -1)[-1]) ] + ext

Thanks, it can also be done with two functions in the Blender.sys module,
Blender.sys.splitext and Blender.sys.basename.

The bundled scripts still need this and other small updates, natural ongoing
work : ).

--
Willian, wgermano at ig.com.br




More information about the Bf-python mailing list