Constraint

class cgp_maya_utils.scene.Constraint(name)

Bases: cgp_maya_utils.scene.DagNode

node object that manipulates any kind of constraint node

data()

data necessary to store the constraint node on disk and/or recreate it from scratch

Returns:the data of the constraint
Return type:dict
drivenAttributes()

the attributes of the driven transform that are driven by the constraint

Returns:the driven attributes
Return type:list[cgp_maya_utils.scene.Attribute]
drivenTransform()

the transform that is driven by the constraint

Returns:the driven transform
Return type:cgp_maya_utils.scene.Transform or cgp_maya_utils.scene.Joint
driverTransforms()

the transforms that drives the constraint

Returns:the driver transforms
Return type:list[cgp_maya_utils.scene.Transform, cgp_maya_utils.scene.Joint]
isValid()

check is the constraint is valid by verifying if it has driver and driven transforms connected

Returns:True : the constraint is valid - False : the constraint is invalid
Return type:bool