Skip to content

Commit

Permalink
Menus - Move "Screen-Space Transform Bake" tool menu
Browse files Browse the repository at this point in the history
To separate the "Screen-Space Transform Bake" and give a visual
difference between it and the "Screen-Space Rig Bake" tool.
  • Loading branch information
david-cattermole committed Apr 6, 2023
1 parent d9e856c commit eb59a31
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
12 changes: 6 additions & 6 deletions python/mmSolver/utils/animcurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ def create_anim_curve_node_apione(
Create an animCurve using Maya API (one).
:param times: Time values for the animCurve
:type times: list
:type times: tuple or list
:param values: Values for the animCurve.
:type values: list
:type values: tuple or list
:param node_attr: The 'plug' to connect the animCurve to.
:type node_attr: str
Expand All @@ -75,10 +75,10 @@ def create_anim_curve_node_apione(
:return: MFnAnimCurve object attached to a newly created animation curve.
:rtype: maya.OpenMaya.MFnAnimCurve
"""
if not isinstance(times, list):
raise ValueError('times must be a list or sequence type; %r' % times)
if not isinstance(values, list):
raise ValueError('values must be a list or sequence type; %r' % values)
if not isinstance(times, (tuple, list)):
raise ValueError('times must be a tuple or list type; %r' % times)
if not isinstance(values, (tuple, list)):
raise ValueError('values must be a tuple or list type; %r' % values)
if len(times) == 0:
raise ValueError('times must have 1 or more values; %r' % times)
if len(values) == 0:
Expand Down
3 changes: 2 additions & 1 deletion share/config/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@
"display_tools/create_screen_space_motion_trail",
"zdepth_tools/---Z-Depth Screen-Space Tools",
"zdepth_tools/screen_z_manipulator",
"zdepth_tools/screen_z_transform_bake",
"zdepth_tools/screen_space_rig_bake",
"zdepth_tools/camera_object_scale_adjust",
"zdepth_tools/camera_object_scale_remove",
"zdepth_tools/---",
"zdepth_tools/screen_z_transform_bake",
"general_tools/---Parenting",
"general_tools/reparent_under_node2",
"general_tools/unparent_to_world2",
Expand Down
3 changes: 2 additions & 1 deletion share/config/shelf.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@
"display_tools/display_popup/create_screen_space_motion_trail",
"zdepth_tools/zdepth_popup/---Z-Depth Screen-Space Tools",
"zdepth_tools/zdepth_popup/screen_z_manipulator",
"zdepth_tools/zdepth_popup/screen_z_transform_bake",
"zdepth_tools/zdepth_popup/screen_space_rig_bake",
"zdepth_tools/zdepth_popup/camera_object_scale_adjust",
"zdepth_tools/zdepth_popup/camera_object_scale_remove",
"zdepth_tools/zdepth_popup/---",
"zdepth_tools/zdepth_popup/screen_z_transform_bake",
"general_tools/gen_tools_popup/---Parenting",
"general_tools/gen_tools_popup/reparent_under_node2",
"general_tools/gen_tools_popup/unparent_to_world2",
Expand Down
3 changes: 2 additions & 1 deletion share/config/shelf_minimal.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@
"display_tools/display_popup/create_screen_space_motion_trail",
"zdepth_tools/zdepth_popup/---Z-Depth Screen-Space Tools",
"zdepth_tools/zdepth_popup/screen_z_manipulator",
"zdepth_tools/zdepth_popup/screen_z_transform_bake",
"zdepth_tools/zdepth_popup/screen_space_rig_bake",
"zdepth_tools/zdepth_popup/camera_object_scale_adjust",
"zdepth_tools/zdepth_popup/camera_object_scale_remove",
"zdepth_tools/zdepth_popup/---",
"zdepth_tools/zdepth_popup/screen_z_transform_bake",
"general_tools/gen_tools_popup/---Parenting",
"general_tools/gen_tools_popup/reparent_under_node2",
"general_tools/gen_tools_popup/unparent_to_world2",
Expand Down

0 comments on commit eb59a31

Please sign in to comment.