vidIVideo GetNumberOfMeasures
Returns the number of measures currently added to the selected video.
Syntax
vidIVideo_handle GetNumberOfMeasures
Application
HyperWorks Tcl Query
Description
Returns the number of measures on the current video. The master measure is always present and is counted in this number.
Example
hwi OpenStack;
hwi GetSessionHandle sess1;
sess1 GetProjectHandle proj;
proj GetPageHandle page1;
page1 SetLayout 2
page1 GetWindowHandle win1 1;
page1 GetWindowHandle win2 2;
win2 SetClientType plot
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;
p1 GetAnimatorHandle anim;
anim SetCurrentStep 10;
vid AddMeasure true;
vid GetNumberOfMeasures; #should return 2
hwi CloseStack;
Errors
Returns an integer number 1 or greater.
Keywords
- HyperWorks
- MediaView
- Tracing
- Tracking System
- Measures