PointConstraint¶
-
class
cgp_maya_utils.scene.PointConstraint(name)¶ Bases:
cgp_maya_utils.scene.Constraintnode object that manipulates an
pointconstraint node-
classmethod
create(drivers, driven, drivenAttributes=None, maintainOffset=False, attributeValues=None, name=None, **__)¶ create a pointConstraint
Parameters: - drivers (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: - drivers (list[
-
classmethod