vidIVideo SetMeasureType
Sets the type of measure.
Syntax
vidIVideo_handle SetMeasureTypetype
Application
HyperWorks Tcl Modify
Description
Sets the type of measure. Valid types of measures are master, static and dynamic. Master is the master measure for a given video which provides units and a conversion factor between pixels and units. It cannot be added or deleted. Other types may be set to a given measure and are described below.
Inputs
- type
-
- ‘dynamic’
- A measure between two tracing markers which is valid for the time range in which both markers exist together.
- ‘static’
- A pixel to pixel measure which is the same for all time steps.
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;
anim SetMeasureType static;
vid SetMeasurePoint1 1 100 100;
vid SetMeasurePoint2 1 200 200;
hwi CloseStack;
Errors
Returns success or an error code.
Keywords
- HyperWorks
- MediaView
- Tracing
- Tracking System
- Measures