Skip to content

Commit

Permalink
Added 'Navigate Root Frames' tool (stub) to the shelf and menu, Issue #…
Browse files Browse the repository at this point in the history
…103.

Added Undo/Redo Scene tools to the shelf and menu.
  • Loading branch information
david-cattermole committed Oct 3, 2019
1 parent 566040b commit cfc6194
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 3 deletions.
40 changes: 40 additions & 0 deletions config/functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,26 @@
"tool.run_solve_on_current_frame();"
]
},
"navigate_root_frame_next": {
"name": "Next Root Frame",
"name_shelf": "",
"icon_shelf": "timenext.png",
"tooltip": "Jump to the next root frame.",
"command": [
"import mmSolver.tools.navigaterootframes.tool as tool;",
"tool.main_next_frame();"
]
},
"navigate_root_frame_prev": {
"name": "Prev Root Frame",
"name_shelf": "",
"icon_shelf": "timeprev.png",
"tooltip": "Jump to the previous root frame.",
"command": [
"import mmSolver.tools.navigaterootframes.tool as tool;",
"tool.main_prev_frame();"
]
},
"create_tools": {
"name": "Create Tools",
"name_shelf": "Create",
Expand Down Expand Up @@ -320,6 +340,26 @@
"mmSolver.tools.screenspacetransform.tool.main();"
]
},
"undo_scene": {
"name": "Undo (without UI update)",
"name_shelf": "Undo",
"tooltip": "Undo the Maya scene state, without updating the viewport or solver UI.",
"icon_shelf": "undo.png",
"command": [
"import mmSolver.tools.undoredoscene.tool;",
"mmSolver.tools.undoredoscene.tool.main_undo();"
]
},
"redo_scene": {
"name": "Redo (without UI update)",
"name_shelf": "Redo",
"tooltip": "Redo the Maya scene state, without updating the viewport or solver UI.",
"icon_shelf": "redo.png",
"command": [
"import mmSolver.tools.undoredoscene.tool;",
"mmSolver.tools.undoredoscene.tool.main_redo();"
]
},
"create_controller": {
"name": "Create Controller",
"name_shelf": "CrCtrl",
Expand Down
4 changes: 4 additions & 0 deletions config/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"open_solver_ui",
"solver_run",
"solver_run_current_frame",
"navigate_root_frame_prev",
"navigate_root_frame_next",
"undo_scene",
"redo_scene",
"---Create",
"create_marker",
"convert_to_marker",
Expand Down
14 changes: 11 additions & 3 deletions config/shelf.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"open_solver_ui",
"solver_run",
"solver_run_current_frame",
"navigate_root_frame_prev",
"navigate_root_frame_next",
"undo_scene",
"redo_scene",
"---Create",
"create_marker",
"convert_to_marker",
Expand All @@ -14,9 +18,9 @@
"swap_marker_bundles",
"select_marker_bundles",
"---Tools",
"mb_link_tools/marker_popup/---Marker-Bundle Link",
"mb_link_tools/marker_popup/link_marker_bundle",
"mb_link_tools/marker_popup/unlink_marker_bundle",
"mb_link_tools/mb_link_popup/---Marker-Bundle Link",
"mb_link_tools/mb_link_popup/link_marker_bundle",
"mb_link_tools/mb_link_popup/unlink_marker_bundle",
"marker_tools/marker_popup/---Marker",
"marker_tools/marker_popup/toggle_marker_lock",
"marker_tools/marker_popup/place_marker_manipulator",
Expand Down Expand Up @@ -52,6 +56,10 @@
"popup": true,
"popup_button": ["right"]
},
"mb_link_popup": {
"popup": true,
"popup_button": ["left", "right"]
},
"marker_popup": {
"popup": true,
"popup_button": ["left", "right"]
Expand Down
6 changes: 6 additions & 0 deletions config/shelf_minimal.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
"solver_tools/solver_popup/---Run",
"solver_tools/solver_popup/solver_run",
"solver_tools/solver_popup/solver_run_current_frame",
"solver_tools/solver_popup/---Undo/Redo",
"solver_tools/solver_popup/undo_scene",
"solver_tools/solver_popup/redo_scene",
"solver_tools/solver_popup/---Root Frames",
"solver_tools/solver_popup/navigate_root_frame_prev",
"solver_tools/solver_popup/navigate_root_frame_next",
"create_tools/create_popup/---Create Marker",
"create_tools/create_popup/create_marker",
"create_tools/create_popup/convert_to_marker",
Expand Down

0 comments on commit cfc6194

Please sign in to comment.