31
31
bl_label = "Motion Paths"
32
32
bl_options = {'DEFAULT_CLOSED'}
34
def draw_settings(self, context, avs, bones=False):
34
def draw_settings(self, context, avs, mpath, bones=False):
35
35
layout = self.layout
37
37
mps = avs.motion_path
39
40
layout.prop(mps, "type", expand=True)
41
42
split = layout.split()
43
44
col = split.column()
45
col.label(text="Display Range:")
44
46
sub = col.column(align=True)
45
47
if (mps.type == 'CURRENT_FRAME'):
46
48
sub.prop(mps, "frame_before", text="Before")
48
50
elif (mps.type == 'RANGE'):
49
51
sub.prop(mps, "frame_start", text="Start")
50
52
sub.prop(mps, "frame_end", text="End")
52
54
sub.prop(mps, "frame_step", text="Step")
54
col.row().prop(mps, "bake_location", expand=True)
58
col.label(text="Cache for Bone:")
60
col.label(text="Cache:")
63
sub = col.column(align=True)
65
sub.prop(mpath, "frame_start", text="From")
66
sub.prop(mpath, "frame_end", text="To")
68
sub = col.column() # align=True
69
sub.operator_context = 'EXEC_DEFAULT'
71
col.operator("pose.paths_calculate", text="Update", icon='BONE_DATA')
73
col.operator("object.paths_calculate", text="Update", icon='OBJECT_DATA')
75
col.label(text="Not available yet...", icon='ERROR')
76
col.label(text="Calculate Paths first", icon='INFO')
80
split = layout.split()
56
82
col = split.column()
57
col.label(text="Display:")
83
col.label(text="Show:")
58
84
col.prop(mps, "show_frame_numbers", text="Frame Numbers")
59
87
col.prop(mps, "show_keyframe_highlight", text="Keyframes")
89
sub.enabled = mps.show_keyframe_highlight
61
col.prop(mps, "show_keyframe_action_all", text="+ Non-Grouped Keyframes")
62
col.prop(mps, "show_keyframe_numbers", text="Keyframe Numbers")
91
sub.prop(mps, "show_keyframe_action_all", text="+ Non-Grouped Keyframes")
92
sub.prop(mps, "show_keyframe_numbers", text="Keyframe Numbers")
65
95
# FIXME: this panel still needs to be ported so that it will work correctly with animviz