Skip to content

Instantly share code, notes, and snippets.

@golemshaper
golemshaper / BlenderPython.py
Created August 28, 2024 00:59 — forked from demohero101/BlenderPython.py
Blender Python Examples
# 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")