Skip to content

Issue 234: Check Rotation Order for selected objects #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: develop_v0.3.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions config/functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,22 @@
"import mmSolver.tools.calibratecamera.tool as tool;",
"tool.update();"
]
},
"ml_convert_rotation_order": {
"name": "Convert Rotation Order UI",
"tooltip": "Change the rotation order of an object while preserving animation.",
"command": [
"import mmSolver.tools.mltools.ml_convertRotationOrder as ml_convertRotationOrder;",
"ml_convertRotationOrder.ui();"
]
},
"ml_check_rotation_orders": {
"name": "Check Rotation Order for Selection",
"tooltip": "Checks Rotation order for all selected objects and prints result in Script Editor.",
"command": [
"import mmSolver.tools.mltools.tools;",
"mmSolver.tools.mltools.tools.loadTipsForAll();"
]
}
}
}
3 changes: 3 additions & 0 deletions config/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
"general_tools/---Controllers",
"general_tools/create_controller2",
"general_tools/remove_controller2",
"general_tools/---ML Tools",
"general_tools/ml_convert_rotation_order",
"general_tools/ml_check_rotation_orders",
"general_tools/---Settings & Preferences",
"general_tools/user_preferences_window",
"file_io_tools/---Input Output",
Expand Down
3 changes: 3 additions & 0 deletions config/shelf.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
"general_tools/gen_tools_popup/---Controllers",
"general_tools/gen_tools_popup/create_controller2",
"general_tools/gen_tools_popup/remove_controller2",
"general_tools/gen_tools_popup/---ML Tools",
"general_tools/gen_tools_popup/ml_convert_rotation_order",
"general_tools/gen_tools_popup/ml_check_rotation_orders",
"general_tools/gen_tools_popup/---Settings & Preferences",
"general_tools/gen_tools_popup/user_preferences_window",
"file_io_tools/file_io_popup/---Input Output",
Expand Down
3 changes: 3 additions & 0 deletions config/shelf_minimal.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
"general_tools/gen_tools_popup/---Controllers",
"general_tools/gen_tools_popup/create_controller2",
"general_tools/gen_tools_popup/remove_controller2",
"general_tools/gen_tools_popup/---ML Tools",
"general_tools/gen_tools_popup/ml_convert_rotation_order",
"general_tools/gen_tools_popup/ml_check_rotation_orders",
"general_tools/gen_tools_popup/---Settings & Preferences",
"general_tools/gen_tools_popup/user_preferences_window",
"file_io_tools/file_io_popup/---Input Output",
Expand Down
27 changes: 27 additions & 0 deletions python/mmSolver/tools/mltools/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright (C) 2019, 2021 David Cattermole.
#
# This file is part of mmSolver.
#
# mmSolver is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# mmSolver is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with mmSolver. If not, see <https://www.gnu.org/licenses/>.
#
"""
These are direct ports for Morgan Loomis's Animation tools so that they
can be utilized within mmSolver.

Morgan Loomis's tools are under the MIT License making them compatible
with mmSolver's GNU Lesser General Public License.

The original files can be found here:
http://morganloomis.com/
"""
1 change: 1 addition & 0 deletions python/mmSolver/tools/mltools/constant.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ROTATE_ORDERS = ['xyz', 'yzx','zxy','xzy','yxz','zyx']
Loading