TransformConstraint(Constraint)

base classes — bpy_struct, Constraint

class bpy.types.TransformConstraint(Constraint)

Map transformations of the target to the object

from_max_x

Top range of X axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_max_x_rot

Top range of X axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_max_x_scale

Top range of X axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_max_y

Top range of Y axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_max_y_rot

Top range of Y axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_max_y_scale

Top range of Y axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_max_z

Top range of Z axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_max_z_rot

Top range of Z axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_max_z_scale

Top range of Z axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_min_x

Bottom range of X axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_min_x_rot

Bottom range of X axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_min_x_scale

Bottom range of X axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_min_y

Bottom range of Y axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_min_y_rot

Bottom range of Y axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_min_y_scale

Bottom range of Y axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_min_z

Bottom range of Z axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_min_z_rot

Bottom range of Z axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_min_z_scale

Bottom range of Z axis source motion (in [-inf, inf], default 0.0)

Type:

float

from_rotation_mode

Specify the type of rotation channels to use (default 'AUTO')

Type:

Literal[Driver Target Rotation Mode Items]

map_from

The transformation type to use from the target (default 'LOCATION')

Type:

Literal[‘LOCATION’, ‘ROTATION’, ‘SCALE’]

map_to

The transformation type to affect on the constrained object (default 'LOCATION')

Type:

Literal[‘LOCATION’, ‘ROTATION’, ‘SCALE’]

map_to_x_from

The source axis constrained object’s X axis uses (default 'X')

Type:

Literal[Axis Xyz Items]

map_to_y_from

The source axis constrained object’s Y axis uses (default 'X')

Type:

Literal[Axis Xyz Items]

map_to_z_from

The source axis constrained object’s Z axis uses (default 'X')

Type:

Literal[Axis Xyz Items]

mix_mode

Specify how to combine the new location with original (default 'ADD')

  • REPLACE Replace – Replace component values.

  • ADD Add – Add component values together.

Type:

Literal[‘REPLACE’, ‘ADD’]

mix_mode_rot

Specify how to combine the new rotation with original (default 'ADD')

  • REPLACE Replace – Replace component values.

  • ADD Add – Add component values together.

  • BEFORE Before Original – Apply new rotation before original, as if it was on a parent.

  • AFTER After Original – Apply new rotation after original, as if it was on a child.

Type:

Literal[‘REPLACE’, ‘ADD’, ‘BEFORE’, ‘AFTER’]

mix_mode_scale

Specify how to combine the new scale with original (default 'REPLACE')

  • REPLACE Replace – Replace component values.

  • MULTIPLY Multiply – Multiply component values together.

Type:

Literal[‘REPLACE’, ‘MULTIPLY’]

subtarget

Armature bone, mesh or lattice vertex group, … (default “”, never None)

Type:

str

target

Target object

Type:

Object

to_euler_order

Explicitly specify the output euler rotation order (default 'AUTO')

  • AUTO Default – Euler using the default rotation order.

  • XYZ XYZ Euler – Euler using the XYZ rotation order.

  • XZY XZY Euler – Euler using the XZY rotation order.

  • YXZ YXZ Euler – Euler using the YXZ rotation order.

  • YZX YZX Euler – Euler using the YZX rotation order.

  • ZXY ZXY Euler – Euler using the ZXY rotation order.

  • ZYX ZYX Euler – Euler using the ZYX rotation order.

Type:

Literal[‘AUTO’, ‘XYZ’, ‘XZY’, ‘YXZ’, ‘YZX’, ‘ZXY’, ‘ZYX’]

to_max_x

Top range of X axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_max_x_rot

Top range of X axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_max_x_scale

Top range of X axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_max_y

Top range of Y axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_max_y_rot

Top range of Y axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_max_y_scale

Top range of Y axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_max_z

Top range of Z axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_max_z_rot

Top range of Z axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_max_z_scale

Top range of Z axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_min_x

Bottom range of X axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_min_x_rot

Bottom range of X axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_min_x_scale

Bottom range of X axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_min_y

Bottom range of Y axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_min_y_rot

Bottom range of Y axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_min_y_scale

Bottom range of Y axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_min_z

Bottom range of Z axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_min_z_rot

Bottom range of Z axis destination motion (in [-inf, inf], default 0.0)

Type:

float

to_min_z_scale

Bottom range of Z axis destination motion (in [-inf, inf], default 0.0)

Type:

float

use_motion_extrapolate

Extrapolate ranges (default False)

Type:

bool

classmethod bl_rna_get_subclass(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (bpy.types.Struct | None) – The value to return when not found.

Returns:

The RNA type or default when not found.

Return type:

bpy.types.Struct

classmethod bl_rna_get_subclass_py(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (type | None) – The value to return when not found.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties

Inherited Functions