vidIVideo AddMeasure
Adds a measure object to the associated video.
Syntax
vidIVideo_handle AddMeasure type
Application
HyperWorks Tcl Modify
Description
Adds a measure to the video. Measures can be static, which measure only between fixed pixel locations, or dynamic which measures between tracing markers. Each video also has one master measure which is used for unit conversions.
Inputs
- type
-
- static
- Measures from pixel to pixel.
- dynamic
- Measures between tracing markers.
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;
vid AddMeasure dynamic;
hwi CloseStack;
Errors
Returns success or an error code.
Keywords
- HyperWorks
- MediaView
- Tracing
- Tracking System
- Measures