ObjectConstraints(bpy_struct)

base class — bpy_struct

class bpy.types.ObjectConstraints(bpy_struct)

Collection of object constraints

active

Active Object constraint

Type :Constraint
new(type)

Add a new constraint to this object

Parameters:type (enum in [‘COPY_LOCATION’, ‘COPY_ROTATION’, ‘COPY_SCALE’, ‘COPY_TRANSFORMS’, ‘LIMIT_DISTANCE’, ‘LIMIT_LOCATION’, ‘LIMIT_ROTATION’, ‘LIMIT_SCALE’, ‘MAINTAIN_VOLUME’, ‘TRANSFORM’, ‘CLAMP_TO’, ‘DAMPED_TRACK’, ‘IK’, ‘LOCKED_TRACK’, ‘SPLINE_IK’, ‘STRETCH_TO’, ‘TRACK_TO’, ‘ACTION’, ‘CHILD_OF’, ‘FLOOR’, ‘FOLLOW_PATH’, ‘PIVOT’, ‘RIGID_BODY_JOINT’, ‘SCRIPT’, ‘SHRINKWRAP’]) – Constraint type to add.
Returns:New constraint.
Return type:Constraint
remove(constraint)

Remove a constraint from this object.

Parameters:constraint (Constraint, (never None)) – Removed constraint.

Inherited Properties

Inherited Functions

References

Previous topic

ObjectBase(bpy_struct)

Next topic

ObjectModifiers(bpy_struct)