I am creating an editor tool with an editor utility widget and Python. One aspect of the tool involves getting every material from the project and displaying them in the widget. Now I have a Python script that finds all of my materials and I would like it to add a button to an editor utility widget for every material.
How do I create and assign those buttons to an editor utility widget using Python? I think the current functionality of the plugin might be enough to achieve this, documentation is just so sparse. If it’s not possible, any other ideas how to achieve this with/without Python?