Skip to content

Instantly share code, notes, and snippets.

@n-burk
n-burk / BlenderToUsdCurves.py
Last active April 3, 2023 19:31
Converting blender curve geometry to UsdGeomBasisCurves
#################################################################
# This script works on a single selected hair geometry object
# modify the stagePath before using
#
################################################################
import bpy
from pxr import Usd, UsdGeom, Sdf, Gf
stagePath = r'C:\work\dumpTest.usda'
@n-burk
n-burk / geoNodeSculpt.py
Last active February 13, 2022 17:27
Blender geo node post animation (local space) sculpt
##############################################
# Select mesh and run script, new collection is created
# and keyable floats are dropped on mesh's new geoNode
# sculpting in action
# https://drive.google.com/file/d/1jDXskWJ0mx_aJMjBoaeRhuHS8vBOhwxT/view?usp=sharing
#
##############################################
import bpy
def dupShapes(shape, sculptCollection):