zoom#

view_transf.zoom(p0: float) int#

Move the viewer closer or farther away.

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:

‘factor’ amount of zoom scaling

Examples:
# 
# Selecting viewport(s) 
# 
ensight.viewport.select_begin(2)
# 
# Applying a zoom factor 
# 
ensight.view_transf.zoom(1.431051)
Returns:

zero on success, non-zero on error