StretchToConstraint(Constraint)
base classes — bpy_struct, Constraint
- class bpy.types.StretchToConstraint(Constraint)
Stretch to meet the target object
- bulge
Factor between volume variation and stretching (in [0, 100], default 0.0)
- Type:
float
- bulge_max
Maximum volume stretching factor (in [1, 100], default 0.0)
- Type:
float
- bulge_min
Minimum volume stretching factor (in [0, 1], default 0.0)
- Type:
float
- bulge_smooth
Strength of volume stretching clamping (in [0, 1], default 0.0)
- Type:
float
- head_tail
Target along length of bone: Head is 0, Tail is 1 (in [0, 1], default 0.0)
- Type:
float
- keep_axis
The rotation type and axis order to use (default
'PLANE_X')PLANE_XXZ – Rotate around local X, then Z.PLANE_ZZX – Rotate around local Z, then X.SWING_YSwing – Use the smallest single axis rotation, similar to Damped Track.
- Type:
Literal[‘PLANE_X’, ‘PLANE_Z’, ‘SWING_Y’]
- rest_length
Length at rest position (in [0, 1000], default 0.0)
- Type:
float
- subtarget
Armature bone, mesh or lattice vertex group, … (default “”, never None)
- Type:
str
- use_bbone_shape
Follow shape of B-Bone segments when calculating Head/Tail position (default False)
- Type:
bool
- use_bulge_max
Use upper limit for volume variation (default False)
- Type:
bool
- use_bulge_min
Use lower limit for volume variation (default False)
- Type:
bool
- volume
Maintain the object’s volume as it stretches (default
'VOLUME_XZX')- Type:
Literal[‘VOLUME_XZX’, ‘VOLUME_X’, ‘VOLUME_Z’, ‘NO_VOLUME’]
- classmethod bl_rna_get_subclass(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
- 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.
- Returns:
The class or default when not found.
- Return type:
type