~ubuntu-branches/ubuntu/utopic/blender/utopic-proposed

« back to all changes in this revision

Viewing changes to release/scripts/startup/bl_operators/anim.py

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-04-28 12:11:12 UTC
  • mto: (14.1.6 experimental) (1.5.1)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: package-import@ubuntu.com-20120428121112-2zi0vp8b6vejda8i
Tags: upstream-2.63
ImportĀ upstreamĀ versionĀ 2.63

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
        scene = context.scene
68
68
        ks = scene.keying_sets.active
69
69
 
70
 
        f.write("# Keying Set: %s\n" % ks.name)
 
70
        f.write("# Keying Set: %s\n" % ks.bl_idname)
71
71
 
72
72
        f.write("import bpy\n\n")
73
 
        # XXX, why not current scene?
74
 
        f.write("scene= bpy.data.scenes[0]\n\n")
 
73
        f.write("scene = bpy.context.scene\n\n")
75
74
 
76
75
        # Add KeyingSet and set general settings
77
76
        f.write("# Keying Set Level declarations\n")
78
 
        f.write("ks= scene.keying_sets.new(name=\"%s\")\n" % ks.name)
 
77
        f.write("ks = scene.keying_sets.new(idname=\"%s\", name=\"%s\")\n"
 
78
                "" % (ks.bl_idname, ks.bl_label))
 
79
        f.write("ks.bl_description = \"%s\"\n" % ks.bl_description)
79
80
 
80
81
        if not ks.is_path_absolute:
81
82
            f.write("ks.is_path_absolute = False\n")