D1873: Customize style for animation motion paths
New options to define the style of the animation paths in order to get better visibility in complex scenes. Now is possible define the color, thickness and several options relative to the style of the lines used to draw motion path.
This commit is contained in:
@@ -86,8 +86,12 @@ class MotionPathButtonsPanel:
|
||||
col = split.column()
|
||||
col.label(text="Show:")
|
||||
col.prop(mps, "show_frame_numbers", text="Frame Numbers")
|
||||
if mpath is not None:
|
||||
col.prop(mpath, "lines", text='Lines')
|
||||
col.prop(mpath, "line_thickness", text='Thickness')
|
||||
|
||||
col = split.column()
|
||||
col.label('')
|
||||
col.prop(mps, "show_keyframe_highlight", text="Keyframes")
|
||||
sub = col.column()
|
||||
sub.enabled = mps.show_keyframe_highlight
|
||||
@@ -95,6 +99,14 @@ class MotionPathButtonsPanel:
|
||||
sub.prop(mps, "show_keyframe_action_all", text="+ Non-Grouped Keyframes")
|
||||
sub.prop(mps, "show_keyframe_numbers", text="Keyframe Numbers")
|
||||
|
||||
# Customize path
|
||||
if mpath is not None:
|
||||
row = layout.row(align=True)
|
||||
row.prop(mpath, "use_custom_color", text='', toggle=True, icon='COLOR')
|
||||
sub = row.row(align=True)
|
||||
sub.enabled = mpath.use_custom_color
|
||||
sub.prop(mpath, "color", text='')
|
||||
|
||||
|
||||
# FIXME: this panel still needs to be ported so that it will work correctly with animviz
|
||||
class OnionSkinButtonsPanel:
|
||||
|
Reference in New Issue
Block a user