def menu_func(self, context):
self.layout.operator("YOUR OPERATOR BL_IDNAME")
def register():
# bpy.utils.register_module(__name__)
# this adds your menu to shift-a add menu
bpy.types.INFO_MT_add.prepend(menu_func)
def unregister():
# bpy.utils.unregister_module(__name__)
bpy.types.INFO_MT_add.remove(menu_func)
if __name__ == "__main__":
register()
Jaroslav Jerryno Novotny
- 51.4k
- 7
- 131
- 218