Constraint(bpy_struct)

base class — bpy_struct

subclasses — KinematicConstraint, CopyScaleConstraint, ShrinkwrapConstraint, FollowPathConstraint, LockedTrackConstraint, CopyTransformsConstraint, PythonConstraint, LimitDistanceConstraint, StretchToConstraint, PivotConstraint, ClampToConstraint, TransformConstraint, LimitRotationConstraint, LimitLocationConstraint, ChildOfConstraint, CopyRotationConstraint, DampedTrackConstraint, TrackToConstraint, SplineIKConstraint, MaintainVolumeConstraint, LimitScaleConstraint, RigidBodyJointConstraint, FloorConstraint, ActionConstraint, CopyLocationConstraint

class bpy.types.Constraint(bpy_struct)

Constraint modifying the transformation of objects and bones

active

Constraint is the one being edited

Type :boolean, default False
error_location

Amount of residual error in Blender space unit for constraints that work on position

Type :float in [-inf, inf], default 0.0, (readonly)
error_rotation

Amount of residual error in radiant for constraints that work on orientation

Type :float in [-inf, inf], default 0.0, (readonly)
influence

Amount of influence constraint will have on the final solution

Type :float in [0, 1], default 0.0
is_proxy_local

Constraint was added in this proxy instance (i.e. did not belong to source Armature)

Type :boolean, default False
is_valid

Constraint has valid settings and can be evaluated

Type :boolean, default False, (readonly)
mute

Enable/Disable Constraint

Type :boolean, default False
name

Constraint name

Type :string, default “”
owner_space

Space that owner is evaluated in

Type :enum in [‘WORLD’, ‘POSE’, ‘LOCAL_WITH_PARENT’, ‘LOCAL’], default ‘WORLD’
show_expanded

Constraint’s panel is expanded in UI

Type :boolean, default False
target_space

Space that target is evaluated in

Type :enum in [‘WORLD’, ‘POSE’, ‘LOCAL_WITH_PARENT’, ‘LOCAL’], default ‘WORLD’
type
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’], default ‘COPY_LOCATION’, (readonly)

Inherited Properties

Inherited Functions

References

Previous topic

ConsoleLine(bpy_struct)

Next topic

ConstraintActuator(Actuator)