vidIVideo SetUseTracking

Sets a flag specifying whether a coordinate system, if defined, will be used in calculating measures.

Syntax

vidIVideo_handle SetUseTracking use_tracking

Application

HyperWorks Tcl Modify

Description

This specifies whether a coordinate system, if defined, will be used in calculating measure information such as endpoint location and length.

Inputs

use_tracking
True
To use the tracking system.
False
To stop using the tracking system.

Example

hwi OpenStack;
hwi GetSessionHandle sess1;
sess1 GetProjectHandle proj;
proj GetPageHandle page1;
page1 GetWindowHandle win1 1;
win1 GetClientHandle vid
vid AddMovie "c:/video/Marker/data/barrier0411.amf"
vid AddTrackingMarker mark1;
mark1 SetTrackPoint 84 122;
mark1 SetName Hello1
vid AddTrackingMarker mark2;
mark2 SetTrackPoint 282 178;
mark2 SetName Hello2
vid CalculateTrackingData;
vid GetMovieHandle movie 1
movie SetCSPoint1 Hello1
movie SetCSPoint2 Hello2
vid SetUseTracking true;
vid GetUseTracking; #should return true
hwi CloseStack; 

Error

Command will return an error code if the video handle is invalid, or success otherwise.

Keywords

  • HyperWorks
  • MediaView
  • Tracing
  • Tracking System