API Reference
- Rig
RigRig.versionInfo()Rig.hiveVersionRig.metaRig.blackBoxRig.iterComponents()Rig.startSession()Rig.rootTransform()Rig.exists()Rig.name()Rig.rename()Rig.namingConfiguration()Rig.buildState()Rig.isLiveLink()Rig.setLiveLink()Rig.createGroup()Rig.addToGroup()Rig.removeGroup()Rig.removeFromGroup()Rig.renameGroup()Rig.groupNames()Rig.iterComponentsForGroup()Rig.createComponent()Rig.clearComponentCache()Rig.validateGuides()Rig.buildGuides()Rig.setGuideVisibility()Rig.setComponentAnnotationVisibility()Rig.setGuideAnnotationVisibility()Rig.buildDeform()Rig.buildRigs()Rig.polish()Rig.controlDisplayLayer()Rig.deleteGuides()Rig.deleteDeform()Rig.deleteRigs()Rig.deleteComponents()Rig.deleteComponent()Rig.deleteControlDisplayLayer()Rig.delete()Rig.duplicateComponent()Rig.duplicateComponents()Rig.mirrorComponents()Rig.components()Rig.rootComponents()Rig.hasComponent()Rig.component()Rig.componentsByType()Rig.componentFromNode()Rig.serializeFromScene()Rig.saveConfiguration()Rig.cachedConfiguration()Rig.componentLayer()Rig.deformLayer()Rig.geometryLayer()Rig.selectionSets()Rig.getOrCreateGeometryLayer()Rig.getOrCreateDeformLayer()Rig.getOrCreateComponentLayer()Rig.buildScriptContext()
alignGuides()rootByRigName()iterSceneRigMeta()iterSceneRigs()loadFromTemplateFile()loadFromTemplate()rigFromNode()parentRig()componentFromNode()componentMetaNodeFromNode()componentsFromSelected()componentsFromNodes()
- Component
ComponentComponent.alignGuides()Component.applyGuideScaleSettings()Component.betaVersionComponent.blackBoxComponent.buildDeform()Component.buildGuide()Component.buildRig()Component.children()Component.componentParentGuide()Component.componentParentJoint()Component.componentTypeComponent.connectables()Component.container()Component.controlPanel()Component.create()Component.createContainer()Component.createGuideControllerTags()Component.createRigControllerTags()Component.createSubSystems()Component.creatorComponent.currentNamingPreset()Component.definitionComponent.definitionNameComponent.deformLayer()Component.deformationJointIds()Component.delete()Component.deleteContainer()Component.deleteDeform()Component.deleteGuide()Component.deleteRig()Component.deprecatedComponent.deserializeComponentConnections()Component.disconnect()Component.disconnectAll()Component.disconnectAllChildren()Component.disconnectComponentContext()Component.documentationComponent.duplicate()Component.exists()Component.findLayer()Component.geometryLayer()Component.group()Component.guideLayer()Component.hasContainer()Component.hasGuide()Component.hasGuideControls()Component.hasParent()Component.hasPolished()Component.hasRig()Component.hasSkeleton()Component.hide()Component.iconComponent.idMapping()Component.inputLayer()Component.isBetaVersionComponent.isHidden()Component.metaComponent.mirror()Component.mirrorData()Component.name()Component.namespace()Component.namingConfiguration()Component.nodes()Component.originalDefinitionComponent.outputLayer()Component.parent()Component.parentNamespace()Component.pin()Component.polish()Component.postDeformDriverSetup()Component.postMirror()Component.postPolish()Component.postSetupDeform()Component.postSetupGuide()Component.postSetupRig()Component.preMirror()Component.prePolish()Component.preSetupDeformLayer()Component.preSetupGuide()Component.preSetupRig()Component.removeAllParents()Component.removeNamespace()Component.removeParent()Component.removeUpstreamAnnotations()Component.rename()Component.renameNamespace()Component.rigComponent.rigLayer()Component.rootTransform()Component.saveDefinition()Component.serializeComponentGuideConnections()Component.serializeFromScene()Component.serializedTokenKey()Component.setDeformNaming()Component.setGuideNaming()Component.setIsHistoricallyInteresting()Component.setMetaNode()Component.setParent()Component.setRigNaming()Component.setSide()Component.setupDeformLayer()Component.setupDrivers()Component.setupGuide()Component.setupInputs()Component.setupOutputs()Component.setupRig()Component.setupRigSettings()Component.setupSpaceSwitches()Component.show()Component.side()Component.spaceSwitchUIData()Component.subsystems()Component.uiDataComponent.unPin()Component.updateComponentDefinition()Component.updateDeformJointRadius()Component.updateGuideSettings()Component.updateJointColours()Component.updateJointDrawMode()Component.updateNaming()Component.uuid()Component.validateGuides()
SpaceSwitchUIDrivenSpaceSwitchUIDriverdisconnectJointTransforms()resetJointTransforms()
- Hive Nodes
SettingsNodeGuideGuide.isGuide()Guide.id()Guide.aimVector()Guide.upVector()Guide.isScaleMirrored()Guide.mirrorPlane()Guide.isAutoAlign()Guide.aimToChild()Guide.aimToGuide()Guide.shape()Guide.setShapeNode()Guide.shapeNode()Guide.setShapeParent()Guide.setParent()Guide.guideParent()Guide.iterGuideParents()Guide.isRoot()Guide.create()Guide.snapPivot()Guide.scalePivotComponents()Guide.scaleAxisComponents()Guide.scaleShapeComponents()Guide.replaceShape()Guide.pivotShapes()Guide.addShape()Guide.setPivotShape()Guide.setDisplayAxisShapeVis()Guide.displayAxisShapeVis()Guide.iterChildGuides()Guide.serializeFromScene()Guide.deleteShapeTransform()Guide.delete()Guide.createShapeTransform()
ControlNodeControlNode.id()ControlNode.controllerTag()ControlNode.addControllerTag()ControlNode.srt()ControlNode.iterSrts()ControlNode.setParent()ControlNode.create()ControlNode.addShapeFromLib()ControlNode.addShape()ControlNode.addShapeFromData()ControlNode.annotation()ControlNode.deleteAnnotation()ControlNode.delete()ControlNode.serializeFromScene()
JointAnnotationInputNodeOutputNodesetGuidesWorldMatrix()HiveLayerHiveLayer.show()HiveLayer.hide()HiveLayer.rootTransform()HiveLayer.createTransform()HiveLayer.delete()HiveLayer.metaAttributes()HiveLayer.updateMetaData()HiveLayer.createSettingsNode()HiveLayer.settingsNodes()HiveLayer.settingNode()HiveLayer.createJoint()HiveLayer.findJoints()HiveLayer.iterJoints()HiveLayer.addJoint()HiveLayer.joints()HiveLayer.disconnectAllJoints()HiveLayer.deleteJoint()HiveLayer.iterJointPlugs()HiveLayer.joint()HiveLayer.rootJoints()HiveLayer.addExtraNode()HiveLayer.addExtraNodes()HiveLayer.extraNodes()HiveLayer.addTaggedNode()HiveLayer.taggedNode()HiveLayer.taggedNodes()HiveLayer.findTaggedNodes()HiveLayer.createAnnotation()HiveLayer.annotation()HiveLayer.annotations()HiveLayer.serializeFromScene()
HiveComponentLayerHiveComponentLayer.idHiveComponentLayer.metaAttributes()HiveComponentLayer.components()HiveComponentLayer.iterComponents()HiveComponentLayer.iterGroupPlugs()HiveComponentLayer.groupElementPlug()HiveComponentLayer.groupNames()HiveComponentLayer.removeFromGroup()HiveComponentLayer.createGroup()HiveComponentLayer.addToGroup()HiveComponentLayer.removeGroup()HiveComponentLayer.iterComponentsNamesForGroup()
HiveInputLayerHiveInputLayer.idHiveInputLayer.metaAttributes()HiveInputLayer.rootInput()HiveInputLayer.rootIONodes()HiveInputLayer.rootInputPlug()HiveInputLayer.createInput()HiveInputLayer.addInputNode()HiveInputLayer.deleteInput()HiveInputLayer.clearInputs()HiveInputLayer.inputPlugById()HiveInputLayer.inputSourcePlugById()HiveInputLayer.inputNode()HiveInputLayer.findInputNodes()HiveInputLayer.hasInput()HiveInputLayer.inputs()HiveInputLayer.serializeFromScene()
HiveOutputLayerHiveOutputLayer.idHiveOutputLayer.metaAttributes()HiveOutputLayer.rootIONodes()HiveOutputLayer.addOutputNode()HiveOutputLayer.outputPlugById()HiveOutputLayer.outputNodePlugById()HiveOutputLayer.findOutputNodes()HiveOutputLayer.outputs()HiveOutputLayer.hasOutput()HiveOutputLayer.outputNode()HiveOutputLayer.createOutput()HiveOutputLayer.deleteOutput()HiveOutputLayer.clearOutputs()HiveOutputLayer.serializeFromScene()
HiveGuideLayerHiveGuideLayer.idHiveGuideLayer.serializeFromScene()HiveGuideLayer.metaAttributes()HiveGuideLayer.isPinned()HiveGuideLayer.alignGuides()HiveGuideLayer.iterGuideCompound()HiveGuideLayer.addChildGuide()HiveGuideLayer.createGuide()HiveGuideLayer.duplicateGuide()HiveGuideLayer.guideSettings()HiveGuideLayer.createSrtBuffer()HiveGuideLayer.deleteGuides()HiveGuideLayer.srt()HiveGuideLayer.findGuides()HiveGuideLayer.isGuidesVisible()HiveGuideLayer.isGuideControlVisible()HiveGuideLayer.setGuideControlVisible()HiveGuideLayer.setGuidesVisible()HiveGuideLayer.guide()HiveGuideLayer.iterGuides()HiveGuideLayer.setGuideShapeTransform()HiveGuideLayer.guideCount()HiveGuideLayer.guidePlugById()HiveGuideLayer.guideNodePlugById()HiveGuideLayer.sourceGuidePlugById()HiveGuideLayer.guideRoot()HiveGuideLayer.isLiveLink()HiveGuideLayer.setLiveLink()HiveGuideLayer.setManualOrient()HiveGuideLayer.delete()HiveGuideLayer.createNamedGraph()HiveGuideLayer.hasNamedGraph()HiveGuideLayer.namedGraph()HiveGuideLayer.namedGraphs()HiveGuideLayer.deleteNamedGraph()HiveGuideLayer.findNamedGraphs()
HiveRigLayerHiveRigLayer.idHiveRigLayer.controlPanel()HiveRigLayer.metaAttributes()HiveRigLayer.createSelectionSet()HiveRigLayer.selectionSet()HiveRigLayer.createSpaceSwitch()HiveRigLayer.addSpaceSwitchNode()HiveRigLayer.spaceSwitches()HiveRigLayer.createControl()HiveRigLayer.control()HiveRigLayer.controlForSrt()HiveRigLayer.srts()HiveRigLayer.srt()HiveRigLayer.createSrtBuffer()HiveRigLayer.addControl()HiveRigLayer.iterControlPlugs()HiveRigLayer.iterControls()HiveRigLayer.findControls()HiveRigLayer.controlPlugById()HiveRigLayer.serializeFromScene()HiveRigLayer.createNamedGraph()HiveRigLayer.hasNamedGraph()HiveRigLayer.namedGraph()HiveRigLayer.namedGraphs()HiveRigLayer.deleteNamedGraph()HiveRigLayer.findNamedGraphs()
HiveDeformLayerHiveDeformLayer.idHiveDeformLayer.metaAttributes()HiveDeformLayer.isLiveLink()HiveDeformLayer.createSelectionSet()HiveDeformLayer.selectionSet()HiveDeformLayer.delete()HiveDeformLayer.setLiveLink()HiveDeformLayer.activateLiveLink()HiveDeformLayer.deactivateLiveLink()HiveDeformLayer.serializeFromScene()
HiveGeometryLayerHiveXGroupLayerHiveComponentHiveComponent.idHiveComponent.delete()HiveComponent.serializeFromScene()HiveComponent.metaAttributes()HiveComponent.rawDefinitionData()HiveComponent.saveDefinitionData()HiveComponent.rootTransform()HiveComponent.createTransform()HiveComponent.outputLayer()HiveComponent.inputLayer()HiveComponent.guideLayer()HiveComponent.rigLayer()HiveComponent.deformLayer()HiveComponent.geometryLayer()HiveComponent.xGroupLayer()HiveComponent.layers()HiveComponent.layerIdMapping()HiveComponent.layersById()HiveComponent.layer()HiveComponent.createLayer()HiveComponent.addTaggedNode()HiveComponent.taggedNode()HiveComponent.taggedNodes()HiveComponent.findTaggedNodes()
HiveRigHiveRig.idHiveRig.delete()HiveRig.displayLayer()HiveRig.createDisplayLayer()HiveRig.deleteControlDisplayLayer()HiveRig.rigName()HiveRig.setBuildScriptConfig()HiveRig.buildScriptConfig()HiveRig.metaAttributes()HiveRig.selectionSets()HiveRig.selectionSet()HiveRig.createSelectionSets()HiveRig.componentLayer()HiveRig.geometryLayer()HiveRig.deformLayer()HiveRig.rootTransform()HiveRig.createTransform()HiveRig.layers()HiveRig.layer()HiveRig.createLayer()
addExtraNodes()addTaggedNode()taggedNode()taggedNodes()findTaggedNodes()
- Definition
GuideLayerDefinitionGuideLayerDefinition.fromData()GuideLayerDefinition.update()GuideLayerDefinition.defaultGuideSettings()GuideLayerDefinition.mergeDefaultSettings()GuideLayerDefinition.defaultMetadataSettings()GuideLayerDefinition.mergeDefaultMetaData()GuideLayerDefinition.iterGuides()GuideLayerDefinition.hasGuides()GuideLayerDefinition.guideCount()GuideLayerDefinition.guide()GuideLayerDefinition.findGuides()GuideLayerDefinition.hasGuideSetting()GuideLayerDefinition.addGuideSetting()GuideLayerDefinition.addGuideSettings()GuideLayerDefinition.guideSetting()GuideLayerDefinition.iterGuideSettings()GuideLayerDefinition.guideSettings()GuideLayerDefinition.deleteGuides()GuideLayerDefinition.deleteSettings()GuideLayerDefinition.deleteSetting()GuideLayerDefinition.addGuide()GuideLayerDefinition.hasGuide()GuideLayerDefinition.createGuide()GuideLayerDefinition.setGuideParent()
RigLayerDefinitionRigLayerDefinition.fromData()RigLayerDefinition.update()RigLayerDefinition.setSettingValue()RigLayerDefinition.addSetting()RigLayerDefinition.addSettings()RigLayerDefinition.insertSettingByName()RigLayerDefinition.insertSetting()RigLayerDefinition.insertSettings()RigLayerDefinition.settingIndex()RigLayerDefinition.deleteSettings()RigLayerDefinition.deleteSetting()RigLayerDefinition.setting()RigLayerDefinition.nodeSettings()
InputLayerDefinitionInputLayerDefinition.fromData()InputLayerDefinition.update()InputLayerDefinition.input()InputLayerDefinition.iterInputs()InputLayerDefinition.clearInputs()InputLayerDefinition.addInput()InputLayerDefinition.createInput()InputLayerDefinition.inputSetting()InputLayerDefinition.addInputSetting()InputLayerDefinition.deleteInputs()
OutputLayerDefinitionOutputLayerDefinition.fromData()OutputLayerDefinition.update()OutputLayerDefinition.output()OutputLayerDefinition.iterOutputs()OutputLayerDefinition.clearOutputs()OutputLayerDefinition.createOutput()OutputLayerDefinition.addOutput()OutputLayerDefinition.outputSetting()OutputLayerDefinition.addOutputSetting()OutputLayerDefinition.deleteOutputs()
DeformLayerDefinitionDeformLayerDefinition.fromData()DeformLayerDefinition.update()DeformLayerDefinition.defaultMetadataSettings()DeformLayerDefinition.mergeDefaultMetaData()DeformLayerDefinition.clearJoints()DeformLayerDefinition.createJoint()DeformLayerDefinition.joint()DeformLayerDefinition.setParentJoint()DeformLayerDefinition.findJoints()DeformLayerDefinition.addJoint()DeformLayerDefinition.iterDeformJoints()DeformLayerDefinition.deleteJoints()
NamedGraphsNamedGraphTransformDefinitionTransformDefinition.DEFAULTSTransformDefinition.translateTransformDefinition.rotateTransformDefinition.scaleTransformDefinition.matrixTransformDefinition.worldMatrixTransformDefinition.attribute()TransformDefinition.iterChildren()TransformDefinition.deserialize()TransformDefinition.copy()TransformDefinition.deleteChild()TransformDefinition.transformationMatrix()
JointDefinitionInputDefinitionOutputDefinitionControlDefinitionGuideDefinitionGuideDefinition.DEFAULTSGuideDefinition.update()GuideDefinition.annotationParentGuideDefinition.shapeTransformGuideDefinition.deserialize()GuideDefinition.addSrt()GuideDefinition.aimVector()GuideDefinition.upVector()GuideDefinition.perpendicularVectorIndex()GuideDefinition.mirrorScaleVector()
AttributeDefinitionAttributeDefinition.TypeAttributeDefinition.typeStrAttributeDefinition.nameAttributeDefinition.valueAttributeDefinition.defaultAttributeDefinition.softMinAttributeDefinition.softMaxAttributeDefinition.minAttributeDefinition.maxAttributeDefinition.lockedAttributeDefinition.channelBoxAttributeDefinition.keyableAttributeDefinition.serialize()
VectorAttributeDefinitionattributeClassForDef()attributeClassForType()
- Build Scripting
BaseBuildScriptBaseBuildScript.idBaseBuildScript.properties()BaseBuildScript.propertiesAsKeyValue()BaseBuildScript.rigBaseBuildScript.delete()BaseBuildScript.preGuideBuild()BaseBuildScript.postGuideBuild()BaseBuildScript.preDeformBuild()BaseBuildScript.postDeformBuild()BaseBuildScript.preRigBuild()BaseBuildScript.postRigBuild()BaseBuildScript.postPolishBuild()BaseBuildScript.preDeleteGuideLayer()BaseBuildScript.preDeleteDeformLayer()BaseBuildScript.preDeleteRigLayer()BaseBuildScript.preDeleteComponents()BaseBuildScript.preDeleteComponent()BaseBuildScript.preDeleteRig()
- Exporter Plugins
- Utils
setMayaUIContainerDisplaySettings()setRigGuidesXRay()- Twist Utils
updateSceneGuideAttributes()generateTwistPositions()generateTwistSegmentGuides()generateTwistJointsFromGuides()createReverseTwistSegmentServer()createStandardTwistServer()rigTwistJoints()createCurveFromDefinition()createSquashGuideCurve()createSquash()createIkSplineJoints()createIkSpline()
- Hive Commands
createRig()renameRig()deleteRig()createComponents()deleteComponents()duplicateComponents()updateGuideSettings()showComponents()hideComponents()toggleBlackBox()setComponentParent()setComponentSide()renameComponent()matchIKFK()FixFkRotations()recalculatePoleVector()setDeformVisibility()mirrorComponents()applySymmetry()buildGuides()buildGuideControls()buildDeform()buildRigs()polishRig()saveTemplate()loadTemplate()deleteTemplate()updateRigConfiguration()setFkGuideParent()addFkGuide()deleteFkGuide()autoAlignGuides()setGuideLRA()setGuidesWorldMatrices()updateRigFromTemplateData()rebuildHiveRig()
- Hive Naming
MissingPresetPathPresetManagerPresetManager.ENV_VARPresetManager.savePreset()PresetManager.availableConfigTypes()PresetManager.updateAvailableConfigTypes()PresetManager.containsPath()PresetManager.findPreset()PresetManager.createPreset()PresetManager.removePreset()PresetManager.deletePreset()PresetManager.duplicatePreset()PresetManager.configSaveFolder()PresetManager.saveConfig()PresetManager.loadFromEnv()PresetManager.loadFromFile()PresetManager.loadFromDirectoryPath()PresetManager.hierarchyData()PresetManager.printHierarchy()PresetManager.findConfigsByType()
PresetPreset.loadFromPath()Preset.loadFromData()Preset.serialize()Preset.exists()Preset.createConfig()Preset.removeConfigByName()Preset.removeConfigByHiveType()Preset.deleteAllConfigs()Preset.deleteConfig()Preset.findConfigDataByHiveType()Preset.findNamingConfigByName()Preset.findNamingConfigForType()
NameConfigDatasurroundTextAsField()uniqueNameForComponentByRig()uniqueNameForRig()composeComponentRootNames()composeRigNamesForLayer()composeNamesForLayer()composeContainerName()composeAnnotationGrpName()composeSettingsName()
- Named Graphs
NamedNodeAlreadyExistsNamedInputAlreadyExistsNamedOutputAlreadyExistsNamedDGGraphNamedDGGraph.inputDataToGraph()NamedDGGraph.outputDataToGraph()NamedDGGraph.create()NamedDGGraph.graphId()NamedDGGraph.setGraphId()NamedDGGraph.name()NamedDGGraph.rename()NamedDGGraph.version()NamedDGGraph.metaData()NamedDGGraph.clearNodes()NamedDGGraph.clearInputs()NamedDGGraph.clearOutputs()NamedDGGraph.hasNode()NamedDGGraph.node()NamedDGGraph.nodes()NamedDGGraph.hasPrimaryInputNode()NamedDGGraph.hasPrimaryOutputNode()NamedDGGraph.primaryInputNode()NamedDGGraph.primaryOutputNode()NamedDGGraph.createIONodes()NamedDGGraph.delete()NamedDGGraph.deleteIONodes()NamedDGGraph.addNode()NamedDGGraph.addInput()NamedDGGraph.renameInput()NamedDGGraph.renameOutput()NamedDGGraph.addOutput()NamedDGGraph.findNodes()NamedDGGraph.inputs()NamedDGGraph.outputs()NamedDGGraph.inputAttr()NamedDGGraph.outputAttr()NamedDGGraph.setInputAttr()NamedDGGraph.connectToInput()NamedDGGraph.connectFromOutput()NamedDGGraph.serializeIO()NamedDGGraph.externalConnections()NamedDGGraph.serialize()
createNamedGraph()hasNamedGraph()namedGraph()namedGraphs()findNamedGraphs()deleteNamedGraph()
- Constants
RIG_TYPERIG_LAYER_TYPEGUIDE_LAYER_TYPEDEFORM_LAYER_TYPECONTROL_PANEL_TYPEINPUT_LAYER_TYPEOUTPUT_LAYER_TYPEXGROUP_LAYER_TYPECOMPONENT_LAYER_TYPEGEOMETRY_LAYER_TYPESETTINGS_NODE_TYPEGUIDE_OFFSET_ATTR_NAMEGUIDE_OFFSET_NODE_NAMEINPUT_OFFSET_ATTR_NAMEINPUT_GUIDE_OFFSET_NODE_NAMEROOT_NODE_TYPEINPUT_PREFIXOUTPUT_PREFIXINPUT_NODE_TYPEOUTPUT_NODE_TYPECOMPONENT_TYPECONTAINER_TYPE_ASSETCONTAINER_TYPE_SETCONTAINER_NAMEIKTYPEFKTYPESKINTYPETRANSFORM_ATTRSLAYER_TYPESALL_TYPESALL_AXISAXIS_DICTATTRIBUTES_SERIALIZE_SKIPTEMPLATE_EXTGRAPH_EXTDEFINITION_EXTINPUTLAYER_DEF_KEYATTR_EXPR_SELFISCOMPONENT_ATTRHIVE_EXTERNAL_METADATA_ATTRDEF_CACHE_INFO_ATTRGUIDE_PIVOT_STATEENV_COMPONENT_KEYDEFAULT_AIM_VECTORDEFAULT_GUIDE_PIVOT_COLORGLOBAL_NAME_CONFIG_TYPENOT_BUILTGUIDES_STATECONTROL_VIS_STATESKELETON_STATERIG_STATEPOLISH_STATEGUIDE_FUNC_TYPEBUILDSCRIPT_FUNC_MAPPING
Configuration
- class Configuration
Bases:
objectHive Configuration object which is initialized for each rig instance. Note: hold globals for registries to avoid unnecessary compute.
- buildScriptVar = 'HIVE_BUILD_SCRIPTS_PATH'
- exportPluginVar = 'HIVE_EXPORT_PLUGIN_PATH'
- containerType()
Default container type, can be asset, set or None.
- Returns:
The container Type
- Return type:
- serialize(rig)
- updateConfigurationFromRig(rig)
Updates the current configuration from the given scene rig instance.
- Parameters:
rig (
zoo.libs.hive.base.rig.Rig) – The rig instance to pull the configuration from.- Returns:
The rig configuration dict pull from the scene rig.
- Return type:
- applySettingsState(state, rig=None)
- Parameters:
rig (
zoo.libs.hive.base.rig.Rigor None) – Rig instance
- Returns:
- Return type:
- setNamingPresetByName(name)
Sets the current Naming convention preset.
- Parameters:
name (str) – The Preset Name.
- findNamingConfigForType(hiveType, presetName=None)
Finds and returns the naming convention config for the hive Type.
The Hive Type is one of three keys either “rig”, “global” or the component Type.
- Parameters:
- Returns:
The naming configuration Manager instance
- Return type:
- setBuildScripts(scriptIds)
Overrides the current build scripts applied to this configuration.
- Parameters:
scriptIds (list[str]) – A list of build script plugin ids
- addBuildScript(scriptId)
Adds/appends the build script plugin given the id.
- buildScriptConfig(rig)
- static updateBuildScriptConfig(rig, config)
- static setBuildScriptConfig(rig, config)
Sets the build script configuration on the provided rig.
Note
Must be json compatible.
The configData is in the following form.
{ "buildScriptId": {"propertyName": "propertyValue"} }
- Parameters:
rig (
zoo.libs.hive.base.rig.Rig) – The rig instance to update.config (dict[str,dict]) – The configuration data for any/all buildscripts for the current rig.
- removeBuildScript(scriptId)
Removes the build script from this rig configuration.
Note
This will not remove any script specified in userPreferences which act as the default for all rigs.
- exportPluginForId(pluginId)
Retrieves the exporter plugin class callable by ID.
If the plugin id has been overridden in the hive preferences then use that ID instead.
- Parameters:
pluginId (str) – The hive exporter plugin id.
- Returns:
The plugin id which matches the request.
- Return type:
callable[
zoo.libs.hive.base.exporterplugin.ExporterPlugin] or None
- componentRegistryObject(componentType)
- Parameters:
componentType (str) – the component type string
- Returns:
- Return type:
- initComponentDefinition(componentType)
- Return type:
tuple[
baseDef.ComponentDefinitionor None,baseDef.ComponentDefinitionor None]
- graphPaths()
- componentPaths()
Returns all current Registered search paths for Components.
- Return type:
list[str]
- definitionPaths()
Returns all folder search paths registered for the definition files.
- Return type:
list[str]
- static buildScriptPaths()
Returns all current build script paths from the environment variable as a list.
- Return type:
list[str]
- static controlShapeNames()
Returns all the control shape names from the shape library.
- Return type:
list(str)
- classmethod componentRegistry()
Returns the current component registry instance.
- Return type:
registry.ComponentRegistry
- classmethod templateRegistry()
Returns the current template registry instance.
- Return type:
registry.TemplateRegistry
- classmethod graphRegistry()
Returns the current graph registry instance.
- Return type:
registry.GraphRegistry
- classmethod buildScriptRegistry()
Returns the current build script registry instance.
- Return type:
pluginmanager.PluginManager
- classmethod exporterPluginRegistry()
Returns the current build script registry instance.
- Return type:
pluginmanager.PluginManager
- classmethod namePresetRegistry()
- Returns:
- Return type:
:class:` namingpresets.PresetManager`
- reload(reloadPlugins=False)
- initializeComponentRegistry(reload=False)
- initializeTemplateRegistry(reload=False)
- initializeGraphRegistry(reload=False)
- initializeBuildScriptRegistry(preferenceInterface, reload=False)
- initializeExporterRegistry(preferenceInterface, reload=False)
- initializeNamingPresetManager(preferencesInterface, reload=False)
Registry
- class ComponentRegistry(*args, **kwargs)
Bases:
objectThis class manages and stores a collection of component objects from the component library, this class is a singleton and is responsible for returning the creation of component objects and definitions.
- refresh()
Refreshes the library by clearing the registry then rediscovering the component plugins
- initComponentDefinition(name)
Creates and returns a new ComponentDefinition instance based on the name parameter
- Parameters:
name (str) – the componentType
- Return type:
tuple[
baseDef.ComponentDefinitionor None,baseDef.ComponentDefinitionor None]
- fromMetaNode(rig, metaNode)
Create a new component of a specified type and attach it to a rig.
- Parameters:
rig (
Rig) – The rig to which the new component will be attached.metaNode (
zoo.libs.hive.base.hivenodes.HiveComponent) – The metadata for the new component.
- Raises:
MissingRootTransform – If the provided metaNode does not have a root transform.
- Returns:
A new component of the specified type, initialized with the provided rig and metaNode.
- Return type:
- findComponentByType(name)
Find and return the component class object from the registry.
- Parameters:
name (str) – the component name, currently the class name
- Returns:
callable[
zoo.libs.hive.base.component.Component]
- loadComponentDefinition(componentName)
Loads the definition file for the component in the registry using json.
- saveComponentDefinition(definition)
Saves the definition object by overwrite the existing one.
- Parameters:
definition (
baseDef.ComponentDefinition) – The definition object to save.- Return type:
- componentData(name)
returns the registry component dict
- Parameters:
name (str) – the component type to get
- Returns:
{“object”: object(), “path”: str, “definition”: str } # the definition name :rtype: dict
- componentDataByPath(path)
Returns the component data and name from the registry based on the provided filePath
- discoverComponents()
Searches the component library specfied by the environment variable “ZOO_HIVE_COMPONENT_PATH”
- class TemplateRegistry(*args, **kwargs)
Bases:
objectClass to handle hive templates, templates are the serialized form of a rig.
- property templates
A property that returns a dictionary of templates in the form of {“templateName”: “templatePath”}.
- Returns:
A dictionary where the keys are template names and the values are template file paths.
- Return type:
- refresh()
Refreshes the library by clearing the registry then rediscovering the component plugins
- saveTemplate(name, template, templateRootPath=None, overwrite=False)
Save a template to the specified location on the file system.
- Parameters:
name (str) – The name of the template.
template (dict) – The template data to be saved.
templateRootPath (str, optional) – The root directory where the template should be saved. If not specified, the default save location will be used.
overwrite (bool, optional) – Indicates whether to overwrite an existing template with the same name. If False and a template with the same name already exists, a TemplateAlreadyExistsError will be raised.
- Raises:
TemplateAlreadyExistsError – If a template with the same name already exists and overwrite is False.
IOError – If there was an error writing the template to the specified file path.
- Returns:
The file path where the template was saved.
- Return type:
- saveComponentsAsTemplate(rig, components, name, templateRootPath, overwrite)
Save the specified components as a template.
- Parameters:
rig (Rig) – The rig containing the components.
components (list) – The components to be saved as a template.
name (str) – The name of the template.
templateRootPath (str) – The root directory where the template should be saved.
overwrite (bool) – Indicates whether to overwrite an existing template with the same name. If False and a template with the same name already exists, a TemplateAlreadyExistsError will be raised.
- Returns:
The file path where the template was saved.
- Return type:
- renameTemplate(name, newName)
Rename a template.
- deleteTemplate(name)
Delete a template with the specified name.
- hasTemplate(name)
Checks whether the registry contains the template with the name.
- template(name)
Returns the rig template dict from the registry
- templatePath(name)
Get the file path for the template with the specified name.
- addTemplate(path)
Add a template to the registry.
- Parameters:
path (str) – The file path for the template.
- templateByPath(path)
Returns the template data from the registry based on the provided filePath
- discoverTemplates()
Discovers all templates in the given paths and stores them in the registry.
- class GraphRegistry(*args, **kwargs)
Bases:
objectClass to handle hive DependencyGraphs.
This class is a singleton, meaning that there will always be only one instance of it.
- property graphs
Get the dictionary of graph names to file paths for all graphs in the registry.
- Returns:
A dictionary of graph names to file paths.
- Return type:
- refresh()
Refreshes the library by clearing the registry then rediscovering the component plugins
- saveGraph(name, namedGraph)
Save a graph with the specified name.
- Parameters:
name (str) – The name of the graph.
namedGraph (
zoo.libs.hive.base.serialization.dggraph.NamedDGGraph) – The graph to be saved.
- Returns:
The file path where the graph was saved.
- Return type:
- renameGraph(name, newName)
Rename a graph in the registry.
- hasGraph(name)
Checks whether the registry contains the graph with the name.
- graph(name)
Returns the rig template dict from the registry
- Parameters:
name (str) – the graph name
- Returns:
- Return type:
baseDef.NamedGraph
- graphPath(name)
Returns the file path of the graph with the given name.
- addGraph(path)
Add a graph to the registry.
- Parameters:
path (str) – The file path of the graph to add.
- discoverTemplates()
Find all graph files in the graph roots and add them to the registry.
Errors
- class ValidationInfo(label)
Bases:
objectProvides information about rig validation results. Useful for UI feedback.
- Parameters:
label (str) – The label of the validation info for UI display.
- class ValidationRigInfo(label)
Bases:
objectProvides information about rig validation results. Useful for UI feedback.
- Parameters:
label (str) – The label of the validation info for UI display.
- appendInfo(info)
- Parameters:
info (
zoo.libs.hive.base.errors.ValidationInfo) – The validation info instance to append.
- append(label, status, message=None)
Appends a new validation info instance to this object and rig info object status is update to the highest status if needed.
- exception HiveRigDuplicateRigsError(dupes, *args, **kwargs)
Bases:
HiveError- msg = 'Duplicate rigs in the scene, please use namespace filtering: {}'
- exception ComponentDoesntExistError(msg='', *args, **kwargs)
Bases:
HiveError- msg = "Component doesn't exist in the scene: "
- exception ComponentGroupAlreadyExists(msg='', *args, **kwargs)
Bases:
HiveError- msg = 'Component group already exists for this rig instance'
- exception TemplateAlreadyExistsError(msg='', *args, **kwargs)
Bases:
HiveError- msg = 'Template path: {} already exists!'
- exception TemplateMissingComponents(msg='', *args, **kwargs)
Bases:
HiveError- msg = 'No Components specified in template: {}'
- exception TemplateRootPathDoesntExist(msg='', *args, **kwargs)
Bases:
HiveError- msg = "Template root path doesn't exist on disk: {}"
- exception InvalidInputNodeMetaData(msg='', *args, **kwargs)
Bases:
HiveError- msg = 'InputLayer meta data is missing inputNode connection'
- exception InvalidOutputNodeMetaData(msg='', *args, **kwargs)
Bases:
HiveError- msg = 'OutputLayer meta data is missing outputNode connection'
- exception InitializeComponentError(componentName, *args, **kwargs)
Bases:
HiveError- msg = 'Failed to initialize component: {}'
- exception MissingRootTransform(metaName, *args, **kwargs)
Bases:
HiveError- msg = 'Missing Root transform on meta node: {}'
- exception RootNamespaceActiveError(msg='', *args, **kwargs)
Bases:
HiveError- msg = 'Current namespace is already the root'
- exception BuildComponentGuideUnknownError(msg='', *args, **kwargs)
Bases:
HiveError- msg = 'Unknown build guide error'
- exception BuildComponentRigUnknownError(msg='', *args, **kwargs)
Bases:
HiveError- msg = 'Unknown build Rig error'
- exception MissingRigForNode(msg='', *args, **kwargs)
Bases:
HiveError- msg = 'Node: {} is not attached to a rig'
- exception MissingMetaNode(msg='', *args, **kwargs)
Bases:
HiveError- msg = 'Attached meta node is not a valid hive node'
- exception MissingComponentType(componentName, *args, **kwargs)
Bases:
HiveError- msg = 'Missing component of type: {}, from the hive component registry'
- exception ComponentNameError(componentName, *args, **kwargs)
Bases:
NameError- msg = 'Component by the name: {}, already exists!'
- exception MissingJoint(jointId, *args, **kwargs)
Bases:
NameError- msg = 'Missing Joint by id : {}'
- exception MissingControlError(msg='', *args, **kwargs)
Bases:
HiveError- msg = 'Missing Control by id : {}'
- exception UnSupportedConnectableNode(msg='', *args, **kwargs)
Bases:
HiveError- msg = "Attempting to connect to unsupported guide: '{}'"
- exception InvalidDefinitionAttrExpression
Bases:
Exception
- exception InvalidDefinitionAttrForSceneNode
Bases:
Exception