restore_view#
- view_transf.restore_view(p0: str) int #
Restores a previously saved view state file.
Since transformations are viewport independent, you need to select the desired viewport before restoring a view state (if you are using multiple viewports).- Args:
- p0:
‘filename’ name of the file containing the saved view
- 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