I just read this https://blender.stackexchange.com/a/80833/81534

In this answer i was focused at this line -

if you have bl_idname='mesh.beautify' then the operator can be called from python with bpy.ops.mesh.beautify() and is added to a panel with layout.operator('mesh.beautify')

what operation should i add here (bpy.ops.?.?) to add a node group to the active material. I have Already created a node group using python script but don't know what to place in front of bl_idname

bl_idname = '?????'

Can anyone help me ??


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.