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:
Antonio Vazquez
2017-01-20 16:49:14 +01:00
parent 1ad04c7d65
commit 404e59c842
6 changed files with 217 additions and 64 deletions

View File

@@ -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: