color_by#

anim_traces.color_by(p0: str) int#

Specify the option by which to color the animated traces on the selected part(s).

The color of the constant_color option is specified by the “anim_traces: RGB” command.
Args:
p0:

‘option’ constant_color

p1:

‘option’ calculated_color

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()
# 
# Color by constant color of magenta 
# 
ensight.anim_traces.color_by("constant_color")
ensight.anim_traces.rgb(1.0000e+00,0.0000e+00,1.0000e+00)
Returns:

zero on success, non-zero on error