save_view#
- view_transf.save_view(p0: str) int #
Save the current view state into a file.
- Args:
- p0:
‘filename’ the name (including the path) of the file in which to save the view state
- Examples:
# # Select the viewport(s) desired # ensight.viewport.select_begin(0) # # Save the current view state into the file # /usr/tmp/view1 # ensight.view_transf.save_view("/usr/tmp/view1") # # You could now do other transformations etc... # # And then when you want to restore to the view state # we saved, do the following # ensight.view_transf.restore_view("/usr/tmp/view1")
- Returns:
zero on success, non-zero on error