palette#

function.palette(*args, **kwargs) Any#

Selects the palette that will be modified.

Only one palette at a time can be modified.
Args:
p0:

‘palette_name’ name of the palette (It will be the same as the variable, or variable component that it represents).

Examples:
ensight.function.palette("N_temperature")
ensight.function.modify_begin()
ensight.function.number_of_levels(4)
ensight.function.edit_level(2)
ensight.function.value(1.6064e+01)
ensight.function.edit_level(3)
ensight.function.value(3.2128e+01)
ensight.function.edit_level(4)
ensight.function.value(4.8192e+01)
ensight.function.edit_level(2)
ensight.function.rgb(0.0000e+00,1.0000e+00,6.6667e-01)
ensight.function.edit_level(3)
ensight.function.rgb(6.6667e-01,1.0000e+00,0.0000e+00)
ensight.function.edit_level(4)
ensight.function.rgb(1.0000e+00,0.0000e+00,0.0000e+00)
ensight.function.modify_end()
Returns:

zero on success, non-zero on error