4.15.2 AMCReader class

The AMCReader class reads Acclaim Motion Capture Data (AMC) files and calls onFrame() for every motion sample in the file.

class AMCReader( filename)
filename is the name of the AMC file that should be read.

read( )
Read the entire file.

onFrame( framenr, data)
This method is called for every frame. framenr is the frame number and data is a list of 2-tuples (bone, values) where bone is a bone name and values the corresponding position/orientation for this frame. The number of values and the meaning of the values is defined in the corresponding ASF file.