Constants

Hive Constants

RIG_TYPE = 'HiveRig'

hive meta class name

RIG_LAYER_TYPE = 'HiveRigLayer'

Rig layer constant

GUIDE_LAYER_TYPE = 'HiveGuideLayer'

Guide layer constant

DEFORM_LAYER_TYPE = 'HiveDeformLayer'

Deform layer constant

CONTROL_PANEL_TYPE = 'controlPanel'

Control layer constant

INPUT_LAYER_TYPE = 'HiveInputLayer'

Input layer constant

OUTPUT_LAYER_TYPE = 'HiveOutputLayer'

Output layer constant

XGROUP_LAYER_TYPE = 'HiveXGroupLayer'

xGroup layer constant

COMPONENT_LAYER_TYPE = 'HiveComponentLayer'

Component layer constant

GEOMETRY_LAYER_TYPE = 'HiveGeometryLayer'

Geometry layer constant

SETTINGS_NODE_TYPE = 'settings'

Settings layer constant

GUIDE_OFFSET_ATTR_NAME = 'guide_offset'

Guide offsets attribute name

GUIDE_OFFSET_NODE_NAME = 'guide_offset'

{section} token of the naming expression for the guide offset meta node

INPUT_OFFSET_ATTR_NAME = 'inputGuide_offset'

Input Offset attribute name

INPUT_GUIDE_OFFSET_NODE_NAME = 'inputGuide_offset'

{section} token of the naming expression for the input offset meta node

ROOT_NODE_TYPE = 'root'

Root Node constant

INPUT_PREFIX = 'IN'

Input prefix constant

OUTPUT_PREFIX = 'OUT'

Output prefix constant

INPUT_NODE_TYPE = 'in'

Input node type constant

OUTPUT_NODE_TYPE = 'out'

Output node type constant

COMPONENT_TYPE = 'component'

Component type constant

CONTAINER_TYPE_ASSET = 'asset'

container Asset type constant

CONTAINER_TYPE_SET = 'set'

container Selection set type constant

CONTAINER_NAME = 'container'

Container Name constant

IKTYPE = 'ik'

Inverse kinematric str type constant

FKTYPE = 'fk'

forward kinematics str type constant

SKINTYPE = 'skin'

Deform type constant

TRANSFORM_ATTRS = ('translate', 'rotate', 'scale')

names for standard transform local attributes

LAYER_TYPES = ('HiveRigLayer', 'HiveGuideLayer', 'HiveDeformLayer', 'HiveInputLayer', 'HiveOutputLayer', 'HiveXGroupLayer', 'HiveComponentLayer', 'HiveGeometryLayer')

All Hive layers type names

ALL_TYPES = ('HiveRigLayer', 'HiveGuideLayer', 'HiveDeformLayer', 'controlPanel', 'HiveInputLayer', 'HiveOutputLayer', 'HiveXGroupLayer', 'HiveComponentLayer', 'HiveGeometryLayer', 'settings', 'root')

All layers and node types for hive

ALL_AXIS = ('x', 'y', 'z')

tuple for x,y,z string names

AXIS_DICT = {'x': 0, 'y': 1, 'z': 2}

Axis name to compound child index

ATTRIBUTES_SERIALIZE_SKIP = ('message', 'center', 'hyperLayout', 'boundingBox', 'zooConstraint')

attributes to ignore when serializing nodes into the definition

TEMPLATE_EXT = '.template'

hive template extension

GRAPH_EXT = '.dgGraph'

graph data file .extension

DEFINITION_EXT = '.definition'

hive component definition extension

INPUTLAYER_DEF_KEY = 'inputLayer'

definition keys

ATTR_EXPR_SELF_TOKEN = '@{self}'

Definition attribute expression constants

ISCOMPONENT_ATTR = 'isComponent'

Meta Data Attribute Names

HIVE_EXTERNAL_METADATA_ATTR = 'hiveExternalMetaData'

used for storing component meta data when referencing joint hierarchies

DEF_CACHE_INFO_ATTR = 'zooDefCacheInfo'

Attribute names which store parts of the component definition

GUIDE_PIVOT_STATE = 0

guide visibility state types

ENV_COMPONENT_KEY = 'HIVE_COMPONENT_PATH'

environment variable keys

DEFAULT_AIM_VECTOR = (1.0, 0.0, 0.0)

guide alignment default Aim/up Vectors

DEFAULT_GUIDE_PIVOT_COLOR = (1.0, 1.0, 0.0)

default guide pivot color

GLOBAL_NAME_CONFIG_TYPE = 'global'

naming preset keys

NOT_BUILT = 0

Rig has yet to be built

GUIDES_STATE = 1

Rig Guides has been built

CONTROL_VIS_STATE = 2

Guides are built and the controls are visible.

SKELETON_STATE = 3

Skeleton(deform) has been built

RIG_STATE = 4

Animation rig has been built, this is the riggers state.

POLISH_STATE = 5

Rig has been polished, ready for animation.

GUIDE_FUNC_TYPE = 0

build script function type constants, Maps to individual build script functions.

BUILDSCRIPT_FUNC_MAPPING = {0: ('preGuideBuild', 'postGuideBuild'), 1: ('preDeformBuild', 'postDeformBuild'), 2: ('preRigBuild', 'postRigBuild'), 3: ('prePolish', 'postPolishBuild'), 4: ('preDeleteGuideLayer', None), 5: ('preDeleteDeformLayer', None), 6: ('preDeleteRigLayer', None), 7: ('preDeleteComponent', None), 8: ('preDeleteComponents', None), 9: ('preDeleteRig', None)}

class method name mapping for building scripting for pre and post for each step