track#

viewport.track(p0: str) int#

Specify the location of the position to track (if any tracking is to be used). Tracking causes the viewer (camera) to stay tuned on the position chosen as the model moves.

None
Args:
p0:

‘location’

  • Off

  • part_centroid

  • part_xmin

  • part_xmax

  • part_ymin

  • part_ymax

  • part_zmin

  • part_zmax

  • node_number

Examples:
ensight.viewport.select_begin(0)
ensight.viewport.track("part_centroid")
ensight.viewport.tracking_part_id(9)
ensight.viewport.select_begin(2)
ensight.viewport.track("node_number")
ensight.viewport.tracking_part_id(21)
ensight.viewport.tracking_node_id(983)
Returns:

zero on success, non-zero on error