tracking_partbyname#

viewport.tracking_partbyname(args: Any) int#

Specify the part name to use for the other location options for tracking. Tracking causes the viewer (camera) to stay tuned on the position chosen as the model moves.

One must specify the part that will be used for the part centroid, min/max, or node number tracking option chosen in viewport: track <location> command
Args:
p0:

‘partname’ The name of the part that will be tracked by one of the options

Examples:
ensight.viewport.select_begin(0)
ensight.viewport.track("part_centroid")
ensight.viewport.tracking_partbyname("flowfield")
ensight.viewport.select_begin(2)
ensight.viewport.track("node_number")
ensight.viewport.tracking_partbyname("outflow")
ensight.viewport.tracking_node_id(983)
Returns:

zero on success, non-zero on error