Skip to content

Commit cbb0bdc

Browse files
authored
Merge pull request #195 from TrevisanGMW/dev
release <- dev (3.2.2)
2 parents c98ac6d + 39f129b commit cbb0bdc

File tree

122 files changed

+11567
-2156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+11567
-2156
lines changed

gt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22

33
# Package Variables
4-
__version_tuple__ = (3, 2, 1)
4+
__version_tuple__ = (3, 2, 2)
55
__version_suffix__ = ''
66
__version__ = '.'.join(str(n) for n in __version_tuple__) + __version_suffix__
77
__authors__ = ['Guilherme Trevisan']

gt/tools/attributes_to_python/attributes_to_python_view.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ def __init__(self, parent=None, controller=None, version=None):
5555
QtCore.Qt.WindowMinimizeButtonHint)
5656
self.setWindowIcon(QIcon(resource_library.Icon.tool_attributes_to_python))
5757

58-
stylesheet = resource_library.Stylesheet.scroll_bar_dark
59-
stylesheet += resource_library.Stylesheet.maya_basic_dialog
60-
stylesheet += resource_library.Stylesheet.list_widget_dark
58+
stylesheet = resource_library.Stylesheet.scroll_bar_base
59+
stylesheet += resource_library.Stylesheet.maya_dialog_base
60+
stylesheet += resource_library.Stylesheet.list_widget_base
6161
self.setStyleSheet(stylesheet)
62-
self.extract_trs_set_attr_btn.setStyleSheet(resource_library.Stylesheet.push_button_bright)
63-
self.extract_trs_list_btn.setStyleSheet(resource_library.Stylesheet.push_button_bright)
64-
self.extract_user_attr_btn.setStyleSheet(resource_library.Stylesheet.push_button_bright)
62+
self.extract_trs_set_attr_btn.setStyleSheet(resource_library.Stylesheet.btn_push_bright)
63+
self.extract_trs_list_btn.setStyleSheet(resource_library.Stylesheet.btn_push_bright)
64+
self.extract_user_attr_btn.setStyleSheet(resource_library.Stylesheet.btn_push_bright)
6565
qt_utils.resize_to_screen(self, percentage=40, width_percentage=55)
6666
qt_utils.center_window(self)
6767

gt/tools/auto_rigger/__init__.py

Lines changed: 19 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,34 @@
11
"""
2-
GT Biped Rigger
2+
Auto Rigger
33
github.com/TrevisanGMW - 2020-12-08
4+
"""
5+
from gt.tools.auto_rigger import rigger_controller
6+
from gt.tools.auto_rigger import rigger_model
7+
from gt.tools.auto_rigger import rigger_view
8+
from gt.ui import qt_utils
9+
import logging
410

5-
ATTENTION!!: This is a legacy tool. It was created before version "3.0.0" and it should NOT be used as an example of
6-
how to create new tools. As a legacy tool, its code and structure may not align with the current package standards.
7-
Please read the "CONTRIBUTING.md" file for more details and examples on how to create new tools.
11+
# Logging Setup
12+
logging.basicConfig()
13+
logger = logging.getLogger(__name__)
14+
logger.setLevel(logging.INFO)
815

9-
TODO:
10-
Updated pattern to MVC
11-
"""
1216
# Tool Version
13-
__version_tuple__ = (1, 12, 6)
14-
__version_suffix__ = ''
17+
__version_tuple__ = (0, 0, 1)
18+
__version_suffix__ = 'alpha'
1519
__version__ = '.'.join(str(n) for n in __version_tuple__) + __version_suffix__
1620

1721

1822
def launch_tool():
1923
"""
2024
Launch user interface and create any necessary connections for the tool to function.
21-
Entry point for when using the tool GT Biped Rigger.
22-
"""
23-
from gt.tools.auto_rigger import rigger_biped_gui
24-
rigger_biped_gui.build_gui_auto_biped_rig()
25-
26-
27-
def launch_biped_rig_interface():
28-
""".
29-
Entry point for when using the GT Biped Rig Interface.
30-
"""
31-
from gt.tools.auto_rigger import biped_rig_interface
32-
biped_rig_interface.build_gui_custom_rig_interface()
33-
34-
35-
def launch_retarget_assistant():
36-
""".
37-
Entry point for when using the GT Retarget Assistant.
38-
"""
39-
from gt.tools.auto_rigger import rigger_retarget_assistant
40-
rigger_retarget_assistant.build_gui_mocap_rig()
41-
42-
43-
def launch_game_exporter():
44-
""".
45-
Entry point for when using the GT Game FBX Exporter.
25+
Entry point for when using this tool.
26+
Creates Model, View and Controller and uses QtApplicationContext to determine context (inside of Maya or not?)
4627
"""
47-
from gt.tools.auto_rigger import rigger_game_exporter
48-
rigger_game_exporter.build_gui_fbx_exporter()
28+
with qt_utils.QtApplicationContext() as context:
29+
_view = rigger_view.RiggerView(parent=context.get_parent(), version=__version__)
30+
_model = rigger_model.RiggerModel()
31+
_controller = rigger_controller.RiggerController(model=_model, view=_view)
4932

5033

5134
if __name__ == "__main__":

0 commit comments

Comments
 (0)