A shape binding attaches a shape from the agent’s shape library to a transform in the agent’s rig. See Agent Layers for more information.
Methods ¶
__init__(transform, shape, deforming, bounds_scale = 1.0)
Creates a new shape binding.
transform
The index of a transform in the agent’s rig.
shape
A shape in the agent’s shape library.
deforming
Specifies whether the shape should be treated as static or deforming.
bounds_scale
Scale factor for the shape’s bounding box.
__init__(transform, shape, deformer, bounds_scale = 1.0)
Creates a new shape binding.
transform
The index of a transform in the agent’s rig.
shape
A shape in the agent’s shape library.
deformer
Specifies the hou.AgentShapeDeformer that should be used to deform the shape.
A value of None
will produce a static shape binding.
bounds_scale
Scale factor for the shape’s bounding box. This can be a single float (for a uniform scale) or a hou.Vector3.
__init__(shape, deformer, bounds_scale = 1.0)
Creates a new shape binding, where the shape is not attached to a transform in the agent’s rig. This can be useful for deforming shapes, which are deformed based on their capture attributes and the agent’s current pose.
shape
A shape in the agent’s shape library.
deformer
Specifies the hou.AgentShapeDeformer that should be used to deform the shape.
A value of None
will produce a static shape binding.
bounds_scale
Scale factor for the shape’s bounding box. This can be a single float (for a uniform scale) or a hou.Vector3.
boundsScale()
→ hou.Vector3
Returns the scale factor for the shape’s bounding box.
deformer()
→ hou.AgentShapeDeformer
Returns the deformer used for the shape, or None
if the shape binding is static.
isAttachedToTransform()
→ bool
Returns whether the shape is attached to a transform in the agent’s rig.
isDeforming()
→ bool
Returns whether the shape is static or deforming.
shapeId()
→ int
Returns the unique id of the shape. This is equivalent to shape().uniqueId()
.
shapeName()
→ str
Returns the name of the shape. This is equivalent to shape().name()
.
transformId()
→ int
Returns the index of the transform in the agent’s rig that the shape is attached to.