Constraint Operators

bpy.ops.constraint.childof_clear_inverse(constraint="", owner='OBJECT')

Clear inverse correction for ChildOf constraint

Parameters:
  • constraint (string, (optional)) – Constraint, Name of the constraint to edit
  • owner (enum in [‘OBJECT’, ‘BONE’], (optional)) –

    Owner, The owner of this constraint

    • OBJECT Object, Edit a constraint on the active object.
    • BONE Bone, Edit a constraint on the active bone.
bpy.ops.constraint.childof_set_inverse(constraint="", owner='OBJECT')

Set inverse correction for ChildOf constraint

Parameters:
  • constraint (string, (optional)) – Constraint, Name of the constraint to edit
  • owner (enum in [‘OBJECT’, ‘BONE’], (optional)) –

    Owner, The owner of this constraint

    • OBJECT Object, Edit a constraint on the active object.
    • BONE Bone, Edit a constraint on the active bone.
bpy.ops.constraint.delete()

Remove constraint from constraint stack

bpy.ops.constraint.limitdistance_reset(constraint="", owner='OBJECT')

Reset limiting distance for Limit Distance Constraint

Parameters:
  • constraint (string, (optional)) – Constraint, Name of the constraint to edit
  • owner (enum in [‘OBJECT’, ‘BONE’], (optional)) –

    Owner, The owner of this constraint

    • OBJECT Object, Edit a constraint on the active object.
    • BONE Bone, Edit a constraint on the active bone.
bpy.ops.constraint.move_down(constraint="", owner='OBJECT')

Move constraint down in constraint stack

Parameters:
  • constraint (string, (optional)) – Constraint, Name of the constraint to edit
  • owner (enum in [‘OBJECT’, ‘BONE’], (optional)) –

    Owner, The owner of this constraint

    • OBJECT Object, Edit a constraint on the active object.
    • BONE Bone, Edit a constraint on the active bone.
bpy.ops.constraint.move_up(constraint="", owner='OBJECT')

Move constraint up in constraint stack

Parameters:
  • constraint (string, (optional)) – Constraint, Name of the constraint to edit
  • owner (enum in [‘OBJECT’, ‘BONE’], (optional)) –

    Owner, The owner of this constraint

    • OBJECT Object, Edit a constraint on the active object.
    • BONE Bone, Edit a constraint on the active bone.
bpy.ops.constraint.objectsolver_clear_inverse(constraint="", owner='OBJECT')

Clear inverse correction for ObjectSolver constraint

Parameters:
  • constraint (string, (optional)) – Constraint, Name of the constraint to edit
  • owner (enum in [‘OBJECT’, ‘BONE’], (optional)) –

    Owner, The owner of this constraint

    • OBJECT Object, Edit a constraint on the active object.
    • BONE Bone, Edit a constraint on the active bone.
bpy.ops.constraint.objectsolver_set_inverse(constraint="", owner='OBJECT')

Set inverse correction for ObjectSolver constraint

Parameters:
  • constraint (string, (optional)) – Constraint, Name of the constraint to edit
  • owner (enum in [‘OBJECT’, ‘BONE’], (optional)) –

    Owner, The owner of this constraint

    • OBJECT Object, Edit a constraint on the active object.
    • BONE Bone, Edit a constraint on the active bone.
bpy.ops.constraint.stretchto_reset(constraint="", owner='OBJECT')

Reset original length of bone for Stretch To Constraint

Parameters:
  • constraint (string, (optional)) – Constraint, Name of the constraint to edit
  • owner (enum in [‘OBJECT’, ‘BONE’], (optional)) –

    Owner, The owner of this constraint

    • OBJECT Object, Edit a constraint on the active object.
    • BONE Bone, Edit a constraint on the active bone.

Previous topic

Console Operators

Next topic

Curve Operators