Skip to content

Instantly share code, notes, and snippets.

@batFINGER
batFINGER / osm_road_stroke.py
Created March 21, 2018 13:26
OSM bits and pieces.
import bpy
from bpy import context
from mathutils import Vector
import bmesh
up = Vector((0, 0, 1)) # z axis
north = Vector((0, 1, 0)) # y axis
def stroke(bm, v, n, w):
v1 = bm.verts.new(v + w / 2 * n)
@batFINGER
batFINGER / mesh_origin_to_selected.py
Last active November 2, 2023 17:24
2.80 bse examples
bl_info = {
"name": "Set mesh origin to selected geometry",
"author": "batFINGER",
"version": (1, 0),
"blender": (2, 80, 0),
"description": "Set mesh origin to selected geometry",
"warning": "",
"wiki_url": "",
"category": "Add Mesh",
}
@batFINGER
batFINGER / add_mesh_spiral_thingy.py
Created January 23, 2020 10:56
Add Mesh Spiral Thingy
bl_info = {
"name": "Spiral Mesh",
"author": "batFINGER",
"version": (1, 0),
"blender": (2, 80, 0),
"location": "View3D > Add > Mesh > Spiral Mesh",
"description": "Adds a Spiral Thingy",
"warning": "",
"wiki_url": "",
"category": "Add Mesh",