save_context#

file.save_context(p0: str) int#

Save a context file.

A context file provides a data independent way to apply a visualization to a new dataset.
The context file consists, at minimum, of a file containing the commands to recreate the visuals on the screen that existed at the time the context was saved.
The filename is used as a root name as multiple files are saved including the palette, view, and keyframe animation state.
Context files are not portable between big/little endian machines at this time.
Args:
p0:

‘filename’ name of the context file

Examples:
ensight.file.save_context("/tmp/test.ctx")
Returns:

zero on success, non-zero on error