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 [‘CAMERA_SOLVER’, ‘FOLLOW_TRACK’, ‘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

  • CAMERA_SOLVER Camera Solver.
  • FOLLOW_TRACK Follow Track.
  • COPY_LOCATION Copy Location.
  • COPY_ROTATION Copy Rotation.
  • COPY_SCALE Copy Scale.
  • COPY_TRANSFORMS Copy Transforms.
  • LIMIT_DISTANCE Limit Distance.
  • LIMIT_LOCATION Limit Location.
  • LIMIT_ROTATION Limit Rotation.
  • LIMIT_SCALE Limit Scale.
  • MAINTAIN_VOLUME Maintain Volume.
  • TRANSFORM Transformation.
  • CLAMP_TO Clamp To.
  • DAMPED_TRACK Damped Track, Tracking by taking the shortest path.
  • IK Inverse Kinematics.
  • LOCKED_TRACK Locked Track, Tracking along a single axis.
  • SPLINE_IK Spline IK.
  • STRETCH_TO Stretch To.
  • TRACK_TO Track To, Legacy tracking constraint prone to twisting artifacts.
  • ACTION Action.
  • CHILD_OF Child Of.
  • FLOOR Floor.
  • FOLLOW_PATH Follow Path.
  • PIVOT Pivot.
  • RIGID_BODY_JOINT Rigid Body Joint.
  • SCRIPT Script.
  • SHRINKWRAP Shrinkwrap.
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)