head_scale#

anim_traces.head_scale(p0: float) int#

Specify the scaling factor for the head size.

Not applicable when head type is none.
If head_size_by is constant, the scale factor is the diameter of the sphere. If head_size_by is set to a scalar or vector the factor scales the variable selected.
Args:
p0:

‘scale_value’ scale factor to apply to the head size.

Examples:
# 
# Select the particle trace part(s) to animate 
# 
ensight.part.select_begin(2)
# 
# Toggle off the visibility of the selected particle trace part(s), and 
# animate them. 
# 
ensight.part.modify_begin()
ensight.part.visible("OFF")
ensight.ptrace.animate("ON")
ensight.part.modify_end()
# 
# Toggle animated trace segment head type to spheres 
# 
ensight.anim_traces.head_type("sphere")
ensight.anim_traces.head_scale(1.0000e-01)
Returns:

zero on success, non-zero on error