[Bf-python] ob.getData(name_only) - BF-Blender patch

Campbell Barton cbarton at metavr.com
Tue Mar 1 11:58:24 CET 2005


Hi All, patched BF-Blender to fix a python error.
ob.getData(name_only=1) is returning the object name.

The correct operation is to return the name of the Data, not the object .
This patch has been tested to work with all object types.

Soem of you might be wondering why this is important- well, I have a 
245meg Blendfile with ~140,000 objects (many linked dupes)
I need to get unique mesh's, but at the moment I have to get the mesh 
data, to get the name, to disover weather I have alredy hassed the Mesh 
data for export.
THIS TAKES YONKS, but is greatly sped up by this functionality.

-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241

-------------- next part --------------
A non-text attachment was scrubbed...
Name: getData_name_only.patch
Type: text/x-patch
Size: 4602 bytes
Desc: not available
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20050301/a4b41070/attachment.bin>


More information about the Bf-python mailing list