viewport_state_copy#

view_transf.viewport_state_copy() int#

Save the transformation state of the currently selected viewport (for the purpose of applying it to a different viewport with the “view_transf: viewport_state_paste” command.

Examples:
# 
# Select viewport for which you wish 
# to save the transformation state 
# 
ensight.viewport.select_begin(1)
ensight.view_transf.viewport_state_copy()
# 
# Select the viewport you wish to 
# apply this state to 
# 
ensight.viewport.select_begin(2)
ensight.view_transf.viewport_state_paste()
Returns:

zero on success, non-zero on error