Last active
August 29, 2015 14:07
-
-
Save zeffii/399dbcab11a1a8e28b3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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