-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release <- dev (3.2.3)
- Loading branch information
Showing
91 changed files
with
7,301 additions
and
1,328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.