rna renaming, still only adjusting properties that wont be animated (at least its very unlikely).
This commit is contained in:
@@ -40,7 +40,7 @@ class SCENE_PT_scene(SceneButtonsPanel, bpy.types.Panel):
|
||||
scene = context.scene
|
||||
|
||||
layout.prop(scene, "camera")
|
||||
layout.prop(scene, "set", text="Background")
|
||||
layout.prop(scene, "background_set", text="Background")
|
||||
|
||||
|
||||
class SCENE_PT_unit(SceneButtonsPanel, bpy.types.Panel):
|
||||
@@ -83,7 +83,7 @@ class SCENE_PT_keying_sets(SceneButtonsPanel, bpy.types.Panel):
|
||||
col.operator("anim.keying_set_remove", icon='ZOOMOUT', text="")
|
||||
|
||||
ks = scene.active_keying_set
|
||||
if ks and ks.absolute:
|
||||
if ks and ks.is_path_absolute:
|
||||
row = layout.row()
|
||||
|
||||
col = row.column()
|
||||
@@ -106,7 +106,7 @@ class SCENE_PT_keying_set_paths(SceneButtonsPanel, bpy.types.Panel):
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
return (context.scene.active_keying_set and context.scene.active_keying_set.absolute)
|
||||
return (context.scene.active_keying_set and context.scene.active_keying_set.is_path_absolute)
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
@@ -144,8 +144,8 @@ class SCENE_PT_keying_set_paths(SceneButtonsPanel, bpy.types.Panel):
|
||||
|
||||
col = row.column()
|
||||
col.label(text="F-Curve Grouping:")
|
||||
col.prop(ksp, "grouping")
|
||||
if ksp.grouping == 'NAMED':
|
||||
col.prop(ksp, "group_method")
|
||||
if ksp.group_method == 'NAMED':
|
||||
col.prop(ksp, "group")
|
||||
|
||||
col.label(text="Keyframing Settings:")
|
||||
@@ -239,8 +239,8 @@ class ANIM_OT_keying_set_export(bpy.types.Operator):
|
||||
f.write("# Keying Set Level declarations\n")
|
||||
f.write("ks= scene.add_keying_set(name=\"%s\")\n" % ks.name)
|
||||
|
||||
if ks.absolute is False:
|
||||
f.write("ks.absolute = False\n")
|
||||
if not ks.is_path_absolute:
|
||||
f.write("ks.is_path_absolute = False\n")
|
||||
f.write("\n")
|
||||
|
||||
f.write("ks.insertkey_needed = %s\n" % ks.insertkey_needed)
|
||||
@@ -299,10 +299,10 @@ class ANIM_OT_keying_set_export(bpy.types.Operator):
|
||||
|
||||
# grouping settings (if applicable)
|
||||
# NOTE: the current default is KEYINGSET, but if this changes, change this code too
|
||||
if ksp.grouping == 'NAMED':
|
||||
f.write(", grouping_method='%s', group_name=\"%s\"" % (ksp.grouping, ksp.group))
|
||||
elif ksp.grouping != 'KEYINGSET':
|
||||
f.write(", grouping_method='%s'" % ksp.grouping)
|
||||
if ksp.group_method == 'NAMED':
|
||||
f.write(", group_method='%s', group_name=\"%s\"" % (ksp.group_method, ksp.group))
|
||||
elif ksp.group_method != 'KEYINGSET':
|
||||
f.write(", group_method='%s'" % ksp.group_method)
|
||||
|
||||
# finish off
|
||||
f.write(")\n")
|
||||
|
||||
Reference in New Issue
Block a user