Control
See Also: Class Control.
Controllers are the objects in 3ds max that control animation. Controllers come in different types based on the type of data they control. For example, transform controllers control the 4x3 matrices used to define the position of nodes in the scene while float controllers control simple floating point values.
Control is the class from which you may derived controller objects. Shown below are several of the methods of Control:
GetValue()
Retrieves the value of the controller at the specified time, and updates the validity interval passed in to reflect the interval of the controller.
SetValue()
Sets the value of the controller at the specified time.
IsLeaf()
The controller should return TRUE if it has no sub controllers. For example, a PRS controller is not a leaf controller (because it has sub-controllers for Position, Rotation and Scale), but a simple keyframed float controller is a leaf controller.
Copy()
When a controller is assigned to a track in the track view the new controller is plugged into the parameter and then this method is called on the new controller with a pointer to the old controller passed in. The new controller can then attempt to copy any data that it can from the old controller. At the very least it should initialize itself to the value of the old controller at frame 0.