animating curve bevel
import bpy def action_report1(action): if action is None: return "None" return action.name def track_report1(track): rval = "" for strip in track.strips: rval = "%s ; %s @%.1f=%s"%(rval, strip.name, strip.frame_start, action_report1(strip.action)) return rval def dump_NLAs(d_block): """ print out a compact report on the NLAs and base action of a data block """ # the 'action' is the thing novice blender users start out keyframing print("action = %s" % action_report1(d_block.animation_data.action)) # NLA tracks are the next level of complexity and are built of # multiple tracks. Each track may have multiple strips, and each # strip refers to an action. for track in d_block.animation_data.nla_tracks: print("track['%s'] = %s"%( track.name, track_report1(track)) ) dump_NLAs(bpy.context.active_object)
Blender python API quick-start
Syntax highlighting by Pygments.