colorby_palette#

part.colorby_palette(args: Any) int#

Colors the currently selected part(s) based on the value of the specified variable at each node or element (depending on whether data is node or element based)

Args:
p0:

‘varname’ the name of an existing variable (or the word “none”)

Examples:
ensight.part.select_begin(1)
ensight.part.modify_begin()
ensight.part.colorby_palette("pressure")
ensight.part.modify_end()
Returns:

zero on success, non-zero on error