VIDEO.PointStatus

Previous  Next

 

status = VIDEO.PointStatus( nControl  AS INTEGER,

                            nFrame    AS INTEGER,

                            nPoint    AS INTEGER, 

                            nNewValue AS INTEGER ) AS INTEGER

 

 

 

 

Sets or gets the point status.

 

' Point Status Flags

CONST MT_Point_Valid       = 0x00000001

CONST MT_Point_Calc        = 0x00000002

CONST MT_Point_Interpol    = 0x00000004

CONST MT_Point_Origin      = 0x00000008

 

Example:

 

FOR i = 1 TO VIDEO.NoOfPoints( nControl, MT_All_Frames )

  PRINT "Point #";i;" Name: ";VIDEO.PointName( nControl, i ),

  FOR frame = 1 TO 10

     IF VIDEO.XCoord( nControl, frame, i ) = 1 THEN

        strOut = FORMAT( "Frame %03d: %6.1f, %6.1f\n", frame, VIDEO.XCoord( nControl, frame, i, FALSE ),_

                                                              VIDEO.YCoord( nControl, frame, i, FALSE ) )

     ELSE

        strOut = FORMAT( "Frame %03d: INVALID\n" )

     ENDIF

     PRINT strOut

  ENDFOR

ENDFOR