Skip to content

Commit

Permalink
release <- dev (3.2.3)
Browse files Browse the repository at this point in the history
release <- dev (3.2.3)
  • Loading branch information
TrevisanGMW committed Jan 4, 2024
2 parents cbb0bdc + 359daf9 commit 5a73c98
Show file tree
Hide file tree
Showing 91 changed files with 7,301 additions and 1,328 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, 2)
__version_tuple__ = (3, 2, 3)
__version_suffix__ = ''
__version__ = '.'.join(str(n) for n in __version_tuple__) + __version_suffix__
__authors__ = ['Guilherme Trevisan']
Expand Down
2 changes: 1 addition & 1 deletion gt/tools/auto_rigger/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
logger.setLevel(logging.INFO)

# Tool Version
__version_tuple__ = (0, 0, 1)
__version_tuple__ = (0, 0, 2)
__version_suffix__ = 'alpha'
__version__ = '.'.join(str(n) for n in __version_tuple__) + __version_suffix__

Expand Down
52 changes: 52 additions & 0 deletions gt/tools/auto_rigger/rig_constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
"""
Auto Rigger Constants
github.com/TrevisanGMW/gt-tools
"""
from gt.utils.naming_utils import NamingConstants


class RiggerConstants:
def __init__(self):
"""
Constant values used by the auto rigging system.
e.g. Attribute names, dictionary keys or initial values.
"""
# General Keys and Attributes
PROJECT_EXTENSION = "rig"
FILE_FILTER = f"Rig Project (*.{PROJECT_EXTENSION});;"
# Attributes and Keys
JOINT_ATTR_UUID = "jointUUID"
PROXY_ATTR_UUID = "proxyUUID"
CONTROL_ATTR_UUID = "controlUUID"
PROXY_ATTR_SCALE = "locatorScale"
PROXY_META_PARENT = "metaParentUUID" # Metadata key, may be different from actual parent (e.g. for lines)
PROXY_META_TYPE = "proxyType" # Metadata key, used to recognize rigged proxies within modules
PROXY_CLR = "color" # Metadata key, describes color to be used instead of side setup.
LINE_ATTR_CHILD_UUID = "lineProxySourceUUID" # Used by the proxy lines to store source
LINE_ATTR_PARENT_UUID = "lineProxyTargetUUID" # Used by the proxy lines to store target
JOINT_ATTR_DRIVEN_UUID = "jointDrivenUUID"
# Separator Attributes
SEPARATOR_STD_SUFFIX = "Options" # Standard (Std) Separator attribute name (a.k.a. header attribute)
SEPARATOR_BEHAVIOR = "Behavior"
# Group Names
GRP_RIG_NAME = f'rig_{NamingConstants.Suffix.GRP}'
GRP_PROXY_NAME = f'rig_proxy_{NamingConstants.Suffix.GRP}'
GRP_GEOMETRY_NAME = f'geometry_{NamingConstants.Suffix.GRP}'
GRP_SKELETON_NAME = f'skeleton_{NamingConstants.Suffix.GRP}'
GRP_CONTROL_NAME = f'control_{NamingConstants.Suffix.GRP}'
GRP_SETUP_NAME = f'setup_{NamingConstants.Suffix.GRP}'
GRP_LINE_NAME = f'visualization_lines'
# Reference Attributes
REF_ROOT_RIG_ATTR = "rootRigLookupAttr"
REF_ROOT_PROXY_ATTR = "rootProxyLookupAttr"
REF_ROOT_CONTROL_ATTR = "rootControlLookupAttr"
REF_DIR_CURVE_ATTR = "dirCrvLookupAttr"
REF_GEOMETRY_ATTR = "geometryGroupLookupAttr"
REF_SKELETON_ATTR = "skeletonGroupLookupAttr"
REF_CONTROL_ATTR = "controlGroupLookupAttr"
REF_SETUP_ATTR = "setupGroupLookupAttr"
REF_LINES_ATTR = "linesGroupLookupAttr"
# Multipliers
LOC_RADIUS_MULTIPLIER_DRIVEN = .8
LOC_RADIUS_MULTIPLIER_FK = .3
LOC_RADIUS_MULTIPLIER_IK = .6
Loading

0 comments on commit 5a73c98

Please sign in to comment.