Views#
- class ansys.pyensight.core.utils.views.Views(ensight: ensight_api.ensight | ensight)#
Controls the view in the current EnSight
Sessioninstance.Methods
Views.compute_model_centroid([vportindex])Compute the model centroid using the model bounds.
Reset the view.
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
Dictionary holding the stored views.