Hey guys, I’d like to be able to get the tooldef as defined in space_toolsystem.common.py for the property or operator which belongs to the ui element the mouse is hovered over.
Here’s what I have so far, but I think I might be barking up the wrong tree.
import bpy
from bl_ui.space_toolsystem_toolbar import ToolDef
from bl_ui.space_toolsystem_common import description_from_id, ToolSelectPanelHelper
class NOTE_OT_printtooldef(bpy.types.Operator):
bl_idname = "note.printtooldef"
bl_label = "print the tool description"
def execute(self, context):
space_type = context.space_data.type
tool = ToolSelectPanelHelper.tool_active_from_context(context)
description = **HOW TO GET DESCRIPTION**
print(description)
return {'FINISHED'}