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
- Type
float in [-inf, inf], default 0.0
- from_max_x_rot¶
Top range of X axis source motion
- Type
float in [-inf, inf], default 0.0
- from_max_x_scale¶
Top range of X axis source motion
- Type
float in [-inf, inf], default 0.0
- from_max_y¶
Top range of Y axis source motion
- Type
float in [-inf, inf], default 0.0
- from_max_y_rot¶
Top range of Y axis source motion
- Type
float in [-inf, inf], default 0.0
- from_max_y_scale¶
Top range of Y axis source motion
- Type
float in [-inf, inf], default 0.0
- from_max_z¶
Top range of Z axis source motion
- Type
float in [-inf, inf], default 0.0
- from_max_z_rot¶
Top range of Z axis source motion
- Type
float in [-inf, inf], default 0.0
- from_max_z_scale¶
Top range of Z axis source motion
- Type
float in [-inf, inf], default 0.0
- from_min_x¶
Bottom range of X axis source motion
- Type
float in [-inf, inf], default 0.0
- from_min_x_rot¶
Bottom range of X axis source motion
- Type
float in [-inf, inf], default 0.0
- from_min_x_scale¶
Bottom range of X axis source motion
- Type
float in [-inf, inf], default 0.0
- from_min_y¶
Bottom range of Y axis source motion
- Type
float in [-inf, inf], default 0.0
- from_min_y_rot¶
Bottom range of Y axis source motion
- Type
float in [-inf, inf], default 0.0
- from_min_y_scale¶
Bottom range of Y axis source motion
- Type
float in [-inf, inf], default 0.0
- from_min_z¶
Bottom range of Z axis source motion
- Type
float in [-inf, inf], default 0.0
- from_min_z_rot¶
Bottom range of Z axis source motion
- Type
float in [-inf, inf], default 0.0
- from_min_z_scale¶
Bottom range of Z axis source motion
- Type
float in [-inf, inf], default 0.0
- from_rotation_mode¶
Specify the type of rotation channels to use
AUTOAuto Euler, Euler using the rotation order of the target.XYZXYZ Euler, Euler using the XYZ rotation order.XZYXZY Euler, Euler using the XZY rotation order.YXZYXZ Euler, Euler using the YXZ rotation order.YZXYZX Euler, Euler using the YZX rotation order.ZXYZXY Euler, Euler using the ZXY rotation order.ZYXZYX Euler, Euler using the ZYX rotation order.QUATERNIONQuaternion, Quaternion rotation.SWING_TWIST_XSwing and X Twist, Decompose into a swing rotation to aim the X axis, followed by twist around it.SWING_TWIST_YSwing and Y Twist, Decompose into a swing rotation to aim the Y axis, followed by twist around it.SWING_TWIST_ZSwing and Z Twist, Decompose into a swing rotation to aim the Z axis, followed by twist around it.
- Type
enum in [‘AUTO’, ‘XYZ’, ‘XZY’, ‘YXZ’, ‘YZX’, ‘ZXY’, ‘ZYX’, ‘QUATERNION’, ‘SWING_TWIST_X’, ‘SWING_TWIST_Y’, ‘SWING_TWIST_Z’], default ‘AUTO’
- map_from¶
The transformation type to use from the target
- Type
enum in [‘LOCATION’, ‘ROTATION’, ‘SCALE’], default ‘LOCATION’
- map_to¶
The transformation type to affect of the constrained object
- Type
enum in [‘LOCATION’, ‘ROTATION’, ‘SCALE’], default ‘LOCATION’
- map_to_x_from¶
The source axis constrained object’s X axis uses
- Type
enum in [‘X’, ‘Y’, ‘Z’], default ‘X’
- map_to_y_from¶
The source axis constrained object’s Y axis uses
- Type
enum in [‘X’, ‘Y’, ‘Z’], default ‘X’
- map_to_z_from¶
The source axis constrained object’s Z axis uses
- Type
enum in [‘X’, ‘Y’, ‘Z’], default ‘X’
- mix_mode¶
Specify how to combine the new location with original
REPLACEReplace, Replace component values.ADDAdd, Add component values together.
- Type
enum in [‘REPLACE’, ‘ADD’], default ‘ADD’
- mix_mode_rot¶
Specify how to combine the new rotation with original
REPLACEReplace, Replace component values.ADDAdd, Add component values together.BEFOREBefore Original, Apply new rotation before original, as if it was on a parent.AFTERAfter Original, Apply new rotation after original, as if it was on a child.
- Type
enum in [‘REPLACE’, ‘ADD’, ‘BEFORE’, ‘AFTER’], default ‘ADD’
- mix_mode_scale¶
Specify how to combine the new scale with original
REPLACEReplace, Replace component values.MULTIPLYMultiply, Multiply component values together.
- Type
enum in [‘REPLACE’, ‘MULTIPLY’], default ‘REPLACE’
- subtarget¶
Armature bone, mesh or lattice vertex group, …
- Type
string, default “”, (never None)
- to_euler_order¶
Explicitly specify the output euler rotation order
AUTODefault, Euler using the default rotation order.XYZXYZ Euler, Euler using the XYZ rotation order.XZYXZY Euler, Euler using the XZY rotation order.YXZYXZ Euler, Euler using the YXZ rotation order.YZXYZX Euler, Euler using the YZX rotation order.ZXYZXY Euler, Euler using the ZXY rotation order.ZYXZYX Euler, Euler using the ZYX rotation order.
- Type
enum in [‘AUTO’, ‘XYZ’, ‘XZY’, ‘YXZ’, ‘YZX’, ‘ZXY’, ‘ZYX’], default ‘AUTO’
- to_max_x¶
Top range of X axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_max_x_rot¶
Top range of X axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_max_x_scale¶
Top range of X axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_max_y¶
Top range of Y axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_max_y_rot¶
Top range of Y axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_max_y_scale¶
Top range of Y axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_max_z¶
Top range of Z axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_max_z_rot¶
Top range of Z axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_max_z_scale¶
Top range of Z axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_min_x¶
Bottom range of X axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_min_x_rot¶
Bottom range of X axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_min_x_scale¶
Bottom range of X axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_min_y¶
Bottom range of Y axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_min_y_rot¶
Bottom range of Y axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_min_y_scale¶
Bottom range of Y axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_min_z¶
Bottom range of Z axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_min_z_rot¶
Bottom range of Z axis destination motion
- Type
float in [-inf, inf], default 0.0
- to_min_z_scale¶
Bottom range of Z axis destination motion
- Type
float in [-inf, inf], default 0.0
- use_motion_extrapolate¶
Extrapolate ranges
- Type
boolean, default False
- classmethod bl_rna_get_subclass(id, default=None)¶
- Parameters
id (string) – The RNA type identifier.
- Returns
The RNA type or default when not found.
- Return type
bpy.types.Structsubclass
- classmethod bl_rna_get_subclass_py(id, default=None)¶
- Parameters
id (string) – The RNA type identifier.
- Returns
The class or default when not found.
- Return type
type
Inherited Properties
Inherited Functions