Skip to content

Commit

Permalink
Merge pull request #195 from TrevisanGMW/dev
Browse files Browse the repository at this point in the history
release <- dev (3.2.2)
  • Loading branch information
TrevisanGMW committed Nov 20, 2023
2 parents c98ac6d + 39f129b commit cbb0bdc
Show file tree
Hide file tree
Showing 122 changed files with 11,567 additions and 2,156 deletions.
2 changes: 1 addition & 1 deletion gt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys

# Package Variables
__version_tuple__ = (3, 2, 1)
__version_tuple__ = (3, 2, 2)
__version_suffix__ = ''
__version__ = '.'.join(str(n) for n in __version_tuple__) + __version_suffix__
__authors__ = ['Guilherme Trevisan']
Expand Down
12 changes: 6 additions & 6 deletions gt/tools/attributes_to_python/attributes_to_python_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ def __init__(self, parent=None, controller=None, version=None):
QtCore.Qt.WindowMinimizeButtonHint)
self.setWindowIcon(QIcon(resource_library.Icon.tool_attributes_to_python))

stylesheet = resource_library.Stylesheet.scroll_bar_dark
stylesheet += resource_library.Stylesheet.maya_basic_dialog
stylesheet += resource_library.Stylesheet.list_widget_dark
stylesheet = resource_library.Stylesheet.scroll_bar_base
stylesheet += resource_library.Stylesheet.maya_dialog_base
stylesheet += resource_library.Stylesheet.list_widget_base
self.setStyleSheet(stylesheet)
self.extract_trs_set_attr_btn.setStyleSheet(resource_library.Stylesheet.push_button_bright)
self.extract_trs_list_btn.setStyleSheet(resource_library.Stylesheet.push_button_bright)
self.extract_user_attr_btn.setStyleSheet(resource_library.Stylesheet.push_button_bright)
self.extract_trs_set_attr_btn.setStyleSheet(resource_library.Stylesheet.btn_push_bright)
self.extract_trs_list_btn.setStyleSheet(resource_library.Stylesheet.btn_push_bright)
self.extract_user_attr_btn.setStyleSheet(resource_library.Stylesheet.btn_push_bright)
qt_utils.resize_to_screen(self, percentage=40, width_percentage=55)
qt_utils.center_window(self)

Expand Down
55 changes: 19 additions & 36 deletions gt/tools/auto_rigger/__init__.py
Original file line number Diff line number Diff line change
@@ -1,51 +1,34 @@
"""
GT Biped Rigger
Auto Rigger
github.com/TrevisanGMW - 2020-12-08
"""
from gt.tools.auto_rigger import rigger_controller
from gt.tools.auto_rigger import rigger_model
from gt.tools.auto_rigger import rigger_view
from gt.ui import qt_utils
import logging

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

TODO:
Updated pattern to MVC
"""
# Tool Version
__version_tuple__ = (1, 12, 6)
__version_suffix__ = ''
__version_tuple__ = (0, 0, 1)
__version_suffix__ = 'alpha'
__version__ = '.'.join(str(n) for n in __version_tuple__) + __version_suffix__


def launch_tool():
"""
Launch user interface and create any necessary connections for the tool to function.
Entry point for when using the tool GT Biped Rigger.
"""
from gt.tools.auto_rigger import rigger_biped_gui
rigger_biped_gui.build_gui_auto_biped_rig()


def launch_biped_rig_interface():
""".
Entry point for when using the GT Biped Rig Interface.
"""
from gt.tools.auto_rigger import biped_rig_interface
biped_rig_interface.build_gui_custom_rig_interface()


def launch_retarget_assistant():
""".
Entry point for when using the GT Retarget Assistant.
"""
from gt.tools.auto_rigger import rigger_retarget_assistant
rigger_retarget_assistant.build_gui_mocap_rig()


def launch_game_exporter():
""".
Entry point for when using the GT Game FBX Exporter.
Entry point for when using this tool.
Creates Model, View and Controller and uses QtApplicationContext to determine context (inside of Maya or not?)
"""
from gt.tools.auto_rigger import rigger_game_exporter
rigger_game_exporter.build_gui_fbx_exporter()
with qt_utils.QtApplicationContext() as context:
_view = rigger_view.RiggerView(parent=context.get_parent(), version=__version__)
_model = rigger_model.RiggerModel()
_controller = rigger_controller.RiggerController(model=_model, view=_view)


if __name__ == "__main__":
Expand Down
Loading

0 comments on commit cbb0bdc

Please sign in to comment.