set_max_time#

anim_traces.set_max_time(p0: str) int#

Toggles on/off the maximum lifetime for all animated traces.

Used in conjunction with “anim_traces: max_time”.
Args:
p0:

‘toggle’

  • ON

  • OFF

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()
# 
# End trace animation at simulation time .5 
# 
ensight.anim_traces.set_max_time("ON")
ensight.anim_traces.max_time(5.0000e-01)
Returns:

zero on success, non-zero on error