Skip to content

Instantly share code, notes, and snippets.

@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 / spherical_fibonacci.py
Created August 15, 2016 17:33
Spherical Fibonacci Coordinates
import bpy
from numpy import (sum, dot, inf, log, sin, cos, pi,
arccos, arctan2, floor, sqrt, trunc,
)
from mathutils import Vector, Matrix
import bmesh
from bpy import context
PHI = (1 + sqrt(5)) / 2 # golden ratio
@batFINGER
batFINGER / uv_mercator_project.py
Created September 6, 2017 21:57
Mercator UV Projection
bl_info = {
"name": "Mercator Project",
"author": "batFINGER",
"version": (1, 0),
"blender": (2, 79, 0),
"location": "View3D > Mesh > UV UnWrap > Mercator Project",
"description": "UV Mercator Projection",
"warning": "",
"wiki_url": "",
"category": "UV",