view_store#

view_transf.view_store(p0: str) int#

Stores a current View state as a state attached to one of the four customizable function keys.

The F5, F6, F7 views have standard right, top, and front views for a default. These can be altered by the user using this command. The views stored here can be recalled using the “view_transf: view_recall” command.
Since transformations can be different per viewport, this can be set for each viewport, thus a viewport selection is needed if more than one viewport is being used.
Args:
p0:

‘option’

  • F5

  • F6

  • F7

  • F8

Examples:
# 
# Select viewport that contains the 
# view that you wish to store. 
# 
ensight.viewport.select_begin(1)
# 
# Store it into the desired F key 
# 
ensight.view_transf.view_store("F5")
Returns:

zero on success, non-zero on error