Views#

class ansys.pyensight.core.utils.views.Views(ensight: ensight_api.ensight | ensight)#

Controls the view in the current EnSight Session instance.

Methods

Views.compute_model_centroid([vportindex])

Compute the model centroid using the model bounds.

Views.reinitialize_view()

Reset the view.

Views.restore_center_of_transform()

Restore the center of the transform to the model centroid.

Views.restore_view(name)

Restore a stored view.

Views.save_current_view([name, vportindex])

Save the current view.

Views.set_center_of_transform(xc, yc, zc)

Change the center of transform of the current session.

Views.set_view_direction(xdir, ydir, zdir[, ...])

Set the view direction of the session.

Attributes

Views.views_dict

Dictionary holding the stored views.