This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Blender Menu Sample 1 | |
| import bpy | |
| class MySimpleMenu(bpy.types.Operator): | |
| bl_idname = "my.simple_menu" | |
| bl_label = "My Simple Menu" | |
| def add_to_menu(self, context) : | |
| self.layout.operator("mesh.primitive_cube_add", icon = "LIGHTPROBE_CUBEMAP") |