Anyone knowledgeable in #blender's #Python API? I'm trying to make a custom Rigify rig type, and one of the setup properties on the metarig side would be a reference to a bone or object. I want to use the same kind of standard UI that is used in constrants and modifiers, wherein you have an object selector (with eyedrop tool and text search), and if it happens to be an armature, you get a second selector for the specific bone.
The problem I'm having is I don't know how to make a durable reference to a bone. I can't use PointerProperty because Bone doesn't inherit from ID. I can use prop_search with a StringProperty to get the correct selector UI, but that just saves the name of the bone, which is subject to change. It is not updated automatically and I can't find info on how to intercept the renaming of bones to update it myself.
