Skip to content

Commit

Permalink
release <- dev (2.4.3)
Browse files Browse the repository at this point in the history
release <- dev (2.4.3)
  • Loading branch information
TrevisanGMW authored Sep 17, 2022
2 parents c4b1397 + cd9511a commit 3207423
Show file tree
Hide file tree
Showing 7 changed files with 519 additions and 250 deletions.
2 changes: 1 addition & 1 deletion python-scripts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os

# Global Vars
PACKAGE_VERSION = "2.4.2"
PACKAGE_VERSION = "2.4.3"

# Initial Setup - Add path and initialize logger
if __name__ != '__main__':
Expand Down
4 changes: 2 additions & 2 deletions python-scripts/gt_attributes_to_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Increased the size of the UI
Added "Extract User-Defined Attributes" function
0.0.6 - 2022-07-26
1.0.0 - 2022-07-26
Added save to shelf
Updated help
Expand Down Expand Up @@ -51,7 +51,7 @@
script_name = 'GT Attributes to Python'

# Version:
script_version = "0.0.5"
script_version = "1.0.0"

DIMENSIONS = ['x', 'y', 'z']
DEFAULT_CHANNELS = ['t', 'r', 's']
Expand Down
694 changes: 458 additions & 236 deletions python-scripts/gt_biped_rig_interface.py

Large diffs are not rendered by default.

29 changes: 22 additions & 7 deletions python-scripts/gt_extract_bound_joints.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
Fixed a typo
Removed unnecessary parameter
1.1.3 to 1.1.4 - 2022-09-12
Changed "Include Bound Mesh" to be be inactive by default
Added option to run bind/unbind skin functions
Centered Checkbox options a bit better
Fixed a few issues caused by the latest changes
Todo:
Add Transfer functions
Add option to include maya.cmds
Expand Down Expand Up @@ -61,11 +67,11 @@
script_name = "GT - Extract Bound Joints"

# Version
script_version = "1.1.2"
script_version = "1.1.4"

# Settings
extract_joints_settings = {'filter_non_existent': True,
'include_mesh': True,
'include_mesh': False,
}


Expand Down Expand Up @@ -106,10 +112,10 @@ def build_gui_extract_bound_joints():
# Body ====================
cmds.rowColumnLayout(nc=1, cw=[(1, 500)], cs=[(1, 10)], p=content_main)
cmds.separator(h=5, style='none') # Empty Space
cmds.rowColumnLayout(nc=2, cw=[(1, 200)], cs=[(1, 60), (2, 35)])
cmds.rowColumnLayout(nc=2, cw=[(1, 200)], cs=[(1, 55), (2, 50)])
filter_non_existent_chk = cmds.checkBox("Include Non-Existent Filter", value=True,
cc=lambda x: _btn_update_settings())
include_mesh_chk = cmds.checkBox("Include Bound Mesh", value=True, cc=lambda x: _btn_update_settings())
include_mesh_chk = cmds.checkBox("Include Bound Mesh", value=False, cc=lambda x: _btn_update_settings())
cmds.separator(h=15, style='none') # Empty Space
cmds.rowColumnLayout(nc=2, cw=[(1, 235), (2, 235)], cs=[(1, 15), (2, 10)], p=content_main)
cmds.button(l="Extract Bound Joints to Python", bgc=(.6, .6, .6),
Expand All @@ -124,9 +130,18 @@ def build_gui_extract_bound_joints():
cmds.text(label='Output - Selection Command:')
output_python = cmds.scrollField(editable=True, wordWrap=True, height=200)
cmds.separator(h=10, style='none') # Empty Space
cmds.rowColumnLayout(nc=2, cw=[(1, 235), (2, 235)], cs=[(1, 15), (2, 15)], p=content_main)
cmds.button(l="Run Code", c=lambda x: run_output_code(cmds.scrollField(output_python, query=True, text=True)))
cmds.button(l="Save to Shelf", c=lambda x: _btn_add_to_shelf())
bottom_btn_clr = (.3, .3, .3)
cmds.rowColumnLayout(nc=4, cw=[(1, 110), (2, 110), (3, 110), (4, 110)],
cs=[(1, 10), (2, 15), (3, 15), (4, 15)],
p=content_main)

cmds.button(l="Run Code",
c=lambda x: run_output_code(cmds.scrollField(output_python, query=True, text=True)),
bgc=bottom_btn_clr)
cmds.button(l="Save to Shelf", c=lambda x: _btn_add_to_shelf(), bgc=bottom_btn_clr)

cmds.button(l="Bind Skin", c=lambda x: mel.eval('SmoothBindSkinOptions;'), bgc=bottom_btn_clr)
cmds.button(l="Unbind Skin", c=lambda x: mel.eval('DetachSkin;'), bgc=bottom_btn_clr)
cmds.separator(h=10, style='none') # Empty Space

def _btn_update_settings():
Expand Down
9 changes: 6 additions & 3 deletions python-scripts/gt_renamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
github.com/TrevisanGMW/gt-tools - 2020-06-25
1.1 - 2020-08-03
Fixed little issue when auto adding suffix to objects with multiple shapes.
Fixed little issue when auto adding suffix to object with multiple shapes.
Added persistent settings.
Fixed "all" option, so functions handles errors when trying to rename readOnly nodes.
Added list of nodes to ignore.
Expand Down Expand Up @@ -45,6 +45,9 @@
Fixed an issue where shape nodes would cause the generator to advance for "Rename and Letter"
Updated help menu
1.6.2 - 2022-09-06
Small PEP8 fixes
"""
import maya.cmds as cmds
import traceback
Expand Down Expand Up @@ -73,7 +76,7 @@
script_name = "GT Renamer"

# Version:
script_version = "1.6.1"
script_version = "1.6.2"

# Auto Suffix/Prefix Strings and other settings:
gt_renamer_settings = {'transform_suffix': '_grp',
Expand Down Expand Up @@ -733,6 +736,7 @@ def get_short_name(obj):
Args:
obj (string) - object to extract short name
"""
short_name = ''
if obj == '':
return ''
split_path = obj.split('|')
Expand Down Expand Up @@ -1003,7 +1007,6 @@ def rename_add_prefix(obj_list, new_prefix_list):
new_prefix_list (list): a list of prefix strings, if just one it assumes that it's a manual input,
if more (3) it automates (usually left, center, right)
"""

auto_prefix = True
if len(new_prefix_list) == 1:
auto_prefix = False
Expand Down
24 changes: 24 additions & 0 deletions python-scripts/gt_rigger_biped_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@
1.9.16 to 17 - 2022-08-03
Updated feet switch and roll controls transform calculation

1.10.0 - 2022-09-14
Added feet switcher reference locators

TODO Biped Rigger:
Transfer scale information from ik spine limit spine to spines
Add option to leave all lock translation attributes off
Expand Down Expand Up @@ -9800,6 +9803,27 @@ def remove_numbers(string):
cmds.parent(left_wrist_ref_loc, left_wrist_fk_jnt)
cmds.setAttr(left_wrist_ref_loc + '.v', 0)

# Ball Ctrl Reference
left_ball_fk_ref_loc = cmds.spaceLocator(name=elements_default.get('left_ball_fk_reference'))[0]
cmds.delete(cmds.parentConstraint(left_ball_ctrl, left_ball_fk_ref_loc))
cmds.parent(left_ball_fk_ref_loc, left_ball_ik_jnt)
cmds.setAttr(left_ball_fk_ref_loc + '.v', 0)

right_ball_fk_ref_loc = cmds.spaceLocator(name=elements_default.get('right_ball_fk_reference'))[0]
cmds.delete(cmds.parentConstraint(right_ball_ctrl, right_ball_fk_ref_loc))
cmds.parent(right_ball_fk_ref_loc, right_ball_ik_jnt)
cmds.setAttr(right_ball_fk_ref_loc + '.v', 0)

left_ball_ik_ref_loc = cmds.spaceLocator(name=elements_default.get('left_ball_ik_reference'))[0]
cmds.delete(cmds.parentConstraint(left_toe_full_ctrl, left_ball_ik_ref_loc))
cmds.parent(left_ball_ik_ref_loc, left_ball_fk_jnt)
cmds.setAttr(left_ball_ik_ref_loc + '.v', 0)

right_ball_ik_ref_loc = cmds.spaceLocator(name=elements_default.get('right_ball_ik_reference'))[0]
cmds.delete(cmds.parentConstraint(right_toe_full_ctrl, right_ball_ik_ref_loc))
cmds.parent(right_ball_ik_ref_loc, right_ball_fk_jnt)
cmds.setAttr(right_ball_ik_ref_loc + '.v', 0)

# Uniform FK Offset Reference
switch_ref_locators = []
# Left Arm
Expand Down
7 changes: 6 additions & 1 deletion python-scripts/gt_rigger_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
2022-06-28
Added facial and corrective classes
2022-09-15
Added ball ctrl reference loc to GTBipedRiggerData
"""
import maya.cmds as cmds
import logging
Expand All @@ -15,7 +18,7 @@
logger = logging.getLogger("gt_rigger_data")
logger.setLevel(logging.INFO)

SCRIPT_VERSION_BASE = '1.9.17'
SCRIPT_VERSION_BASE = '1.10.0'
SCRIPT_VERSION_FACIAL = '1.0.3'
SCRIPT_VERSION_CORRECTIVE = '1.0.1'

Expand Down Expand Up @@ -123,6 +126,8 @@ class GTBipedRiggerData:
'left_elbow_ik_reference': 'elbowSwitch_loc',
'left_wrist_ik_reference': 'wristSwitch_loc',
'left_shoulder_ik_reference': 'shoulderSwitch_loc',
'left_ball_ik_reference': 'ikBallOffsetRef_loc',
'left_ball_fk_reference': 'fkBallOffsetRef_loc',
}

# Auto Populate Control Names (Copy from Left to Right) + Add prefixes
Expand Down

0 comments on commit 3207423

Please sign in to comment.