LimitRotationConstraint(Constraint)¶
base classes — bpy_struct, Constraint
- class bpy.types.LimitRotationConstraint(Constraint)¶
Limit the rotation of the constrained object
- euler_order¶
Explicitly specify the euler rotation order (default
'AUTO')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:
Literal[‘AUTO’, ‘XYZ’, ‘XZY’, ‘YXZ’, ‘YZX’, ‘ZXY’, ‘ZYX’]
- max_x¶
Upper X angle bound (in [-1000, 1000], default 0.0)
- Type:
float
- max_y¶
Upper Y angle bound (in [-1000, 1000], default 0.0)
- Type:
float
- max_z¶
Upper Z angle bound (in [-1000, 1000], default 0.0)
- Type:
float
- min_x¶
Lower X angle bound (in [-1000, 1000], default 0.0)
- Type:
float
- min_y¶
Lower Y angle bound (in [-1000, 1000], default 0.0)
- Type:
float
- min_z¶
Lower Z angle bound (in [-1000, 1000], default 0.0)
- Type:
float
- use_legacy_behavior¶
Use the old semi-broken behavior that does not understand that rotations loop around (default False)
- Type:
bool
- use_limit_x¶
Use the minimum X value (default False)
- Type:
bool
- use_limit_y¶
Use the minimum Y value (default False)
- Type:
bool
- use_limit_z¶
Use the minimum Z value (default False)
- Type:
bool
- use_transform_limit¶
Transform tools are affected by this constraint as well (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:
- 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