Skip to main content
1 of 5
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()