reset_by_action#

view_transf.reset_by_action() int#

Initializes the current action transformation, thus removing the effect of that transformation.

Since transformations can be different per viewport, this command can be used for each viewport, thus a viewport selection is needed if more than one viewport is being used.
Examples:
# 
# Set the action to rotate 
# and the axis to be x 
# 
ensight.view_transf.action("rotate")
ensight.view_transf.axis("x")
# 
# Select the viewport(s) desired 
# 
ensight.viewport.select_begin(0,2)
# 
# perform a couple of rotates 
# 
ensight.view_transf.rotate(0.500000,0.000000,0.00000)
ensight.view_transf.rotate(-30.00000,0.000000,0.00000)
# 
# Now remove both rotates using this command 
# because the action is rotate. 
# 
ensight.view_transf.reset_by_action()
Returns:

zero on success, non-zero on error