vidIVideo AdvanceToMeasure
Changes the timestep on the current page to show given measure.
Syntax
vidIVideo_handle AdvanceToMeasure index
Application
HyperWorks Tcl Query
Description
Changes the timestep on the current page to the time at which the measure given in index was defined, then redraws the page.
Inputs
- index
- A valid index for a measure associated with the given video handle.
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 static;
anim SetCurrentStep 30;
vid AdvanceToMeasure 1; #jumps the page back to frame 10 where measure 1 was created
hwi CloseStack;
Errors
Returns success or an error code.
Keywords
- HyperWorks
- MediaView
- Video
- Modify
- Create