[Bf-committers] No custom properties on bones?

Nathan Vegdahl cessen at cessen.com
Mon Oct 11 03:13:01 CEST 2010

I'm unsure if this is a bug, so I'll hold off filing a bug report.
It seems that it's not possible to create custom properties on bones
or pose bones.

This works:
    bpy.types.Object.new_prop = bpy.props.FloatProperty()
But these don't:
    bpy.types.Bone.new_prop = bpy.props.FloatProperty()
    bpy.types.PoseBone.new_prop = bpy.props.FloatProperty()

Trying to access the new custom properties results in this for objects:
And this for the other two:
    (<built-in function FloatProperty>, {})

Is this by design?  And if so, can it be changed?  I could really use
custom bone properties for the work I'm doing on the auto-rigging
system, as I would like to create an enum property on pose bones (or
bones, either way).

--Nathan Vegdahl

More information about the Bf-committers mailing list