Skip to content

Instantly share code, notes, and snippets.

@zeffii
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/399dbcab11a1a8e28b3b to your computer and use it in GitHub Desktop.
Save zeffii/399dbcab11a1a8e28b3b to your computer and use it in GitHub Desktop.
objs = bpy.data.objects
def process_curve(obj):
curve = obj.data
splines = curve.splines
if not splines:
continue
ru = curve.resolution_u
rv = curve.resolution_v
rd = curve.dimensions
for spline in splines:
if spline.type == 'BEZIER':
for bp in spline.bezier_points:
bp.co
bp.handle_left
bp.handle_left_type
bp.handle_right
bp.handle_right_type
bp.radius
# output a dict of the Curve
for name in objs_referenced:
if objs[name].type == 'CURVE':
process_curve(objs[name])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment