center_of_transform#

view_transf.center_of_transform(p0: float, p1: float, p2: float) int#

Set the point in space that will be the origin for transformations.

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.
Cannot be set during keyframe animation.
Args:
p0:

‘x_coord’ model x coordinate of the desired transformation origin

p1:

‘y_coord’ model y coordinate of the desired transformation origin

p2:

‘z_coord’ model z coordinate of the desired transformation origin

Examples:
# 
# Selecting two viewports 
# 
ensight.viewport.select_begin(2,3)
# 
# Setting the center of transformations to be 
# at (.5 .6 1) for each of these viewports 
# 
ensight.view_transf.center_of_transform(5.0000e-01,6.0000e-01,1.0000e+00)
Returns:

zero on success, non-zero on error