[Bf-python] Object types as string

Campbell Barton cbarton at metavr.com
Wed Apr 4 07:13:42 CEST 2007


Hi, just wondering if were ok about ob.type's being a string..

bpy.ipos.new('name', 'Material') # new material ipo
ob.type == 'Mesh'

Im asking because we have no way to find the ipo type and Id like to add 
ipo.type

(ipo.blocktype exists but there is no reference to compare the ID types 
with so its not even useable AFAIK)




More information about the Bf-python mailing list