I made a prop_search which gets the bones of an armature. I wanted to filter these bones so that only bones with a certain value on a custom property would appear in the list.
Come to find out however, bpy.types.Bones (or bpy.types.PoseBones) cannot be used as the type parameter for a PointerProperty, which makes what I wanted to do effectively impossible. (I’d rather just see the whole list of bones than attempt to maintain a manually constructed collection of strings containing bone names to be used as pointers)
As you can imagine, this is mildly frustrating. What I am wondering now is, why is it this way? Ideally, I think most things should be able to be used as the PointerProperty type, given the correct context. But, as of right now, this list is rather thin…I don’t know what it would take to change this, but I really do hope this is worked on.
If anyone has any solutions to recommend which can be implemented using the current Blender API, that would also be welcomed.