ParentConstraint¶
-
class
cgp_maya_utils.scene.ParentConstraint(name)¶ Bases:
cgp_maya_utils.scene.Constraintnode object that manipulates an
parentconstraint node-
classmethod
create(drivers, driven, drivenAttributes=None, maintainOffset=False, attributeValues=None, name=None, **__)¶ create an parentConstraint
Parameters: - drivers (list[str] or list[
cgp_maya_utils.scene.Transform]) – transforms driving the constraint - driven (str or
cgp_maya_utils.scene.Transform) – transform driven by the constraint - drivenAttributes (list[
cgp_maya_utils.constants.Transform]) – driven attributes controlled by the constraint - all attributes if nothing is specified - maintainOffset (bool) –
True: constraint created with offset -False: constraint created without offset - attributeValues (dict) – attribute values to set on the constraint
- name (str) – name of the constraint
Returns: the created constraint
Return type: cgp_may_utils.scene.ParentConstraint- drivers (list[str] or list[
-
classmethod