restore_predefinedpal#

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

Restores predefined palettes that are in the user’s default palette directory.

Predefined palettes reside in a user’s ./palettes directory.
Args:
p0:

‘level_option’

  • One of the following:

  • use_new_levels

  • use_existing_levels

p1:

‘palette_name’ name of the predefined palette to restore

Examples:
ensight.function.restore_predefinedpal("use_new_levels","mypal")
Returns:

zero on success, non-zero on error