Skip to content

Commit

Permalink
update game tools menu with FBX exporter and new icon #117
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcampos committed Sep 5, 2023
1 parent f311a2f commit d98dde2
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 7 deletions.
Binary file added release/icons/mgear_game.afdesign
Binary file not shown.
23 changes: 23 additions & 0 deletions release/icons/mgear_game.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 12 additions & 7 deletions release/scripts/mgear/shifter/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ def install():
commands = (
("Guide Manager", str_show_guide_manager, "mgear_list.svg"),
("-----", None),
(None, game_submenu),
("-----", None),
("Settings", str_inspect_settings, "mgear_sliders.svg"),
("Duplicate", str_duplicate, "mgear_copy.svg"),
("Duplicate Sym", str_duplicateSym, "mgear_duplicate_sym.svg"),
Expand Down Expand Up @@ -36,8 +38,6 @@ def install():
("Auto Fit Guide (BETA)", str_auto_fit_guide),
("-----", None),
("Plebes...", str_plebes),
("-----", None),
(None, game_submenu),
(None, mocap_submenu),
("-----", None),
("Update Guide", str_updateGuide, "mgear_loader.svg"),
Expand Down Expand Up @@ -130,16 +130,21 @@ def game_submenu(parent_menu_id):
parent_menu_id (str): Parent menu. i.e: "MayaWindow|mGear|menuItem355"
"""
commands = (
# ("FBX Export", str_game_fbx_export),
# ("-----", None),
("FBX Export (BETA)", str_game_fbx_export),
("-----", None),
("Disconnect Joints", str_game_disconnet),
("Connect Joints", str_game_connect),
("Delete Rig + Keep Joints", str_game_delete_rig),
("-----", None),
("Game Tool Disconnect + Assembly IO", str_openGameAssemblyTool),
)

mgear.menu.install("Game Tools", commands, parent_menu_id)
mgear.menu.install(
"Game Tools",
commands,
parent_menu_id,
image="mgear_game.svg",
)


def guide_template_samples_submenu(parent_menu_id):
Expand Down Expand Up @@ -323,6 +328,6 @@ def guide_template_samples_submenu(parent_menu_id):
"""

str_game_fbx_export = """
from mgear.shifter import game_tools_fbx
game_tools_fbx.openFBXExport()
from mgear.shifter.game_tools_fbx import fbx_exporter
fbx_exporter.openFBXExporter()
"""

0 comments on commit d98dde2

Please sign in to comment.