Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I want to add nodes to a node group, but for that, I need to know the name of the currently selected material. How can I find the active material with python?
The answer is bpy.context.active_object.active_material.name
Required, but never shown