Hi.
I’ve been googling and trying to do searches in API manual, but I don’t seem to find correct keywords… I simply can’t figure out how to add listeners to buttons or dropdowns in panels.
I created an operator. I added operator to Panel. That was straightforward, as there is no need for listeners… however, I copied some example of dropdown, to select Action:
# picker to pick Action / Pose library
if bpy.context.object.animation_data is not None:
self.layout.prop(bpy.context.object.animation_data, "action")
I’d like to get some method to listen to selection from this drop down. When user selects pose library A, I’ll show a list containing all the poses from library A. If user selects another pose library, I’ll show its content instead.
Any links, API page locations and other documention links are welcome…
Edit:
I fail to even properly grasp what there self.layout.prop things are - some sort automatic property drawers based on item type? Like operator becomes button.
But what for example is this list of animation data i.e. Actions? Some sort of dropdown. So how to get its type and try to find more info what I can do. I really miss real UI elements, Blenders implementation of UI system feels pretty abstract.