FBX SDK Programmer's Guide > Animation > Animation Data Structures >

# Writing and Using your Own Evaluator

You can use the FbxAnimEvaluator class to evaluate the animation in a scene.

    // Assume that myScene is already created
    FbxAnimEvaluator* mySceneEvaluator = MyScene->GetEvaluator();

The FbxAnimEvaluator is an abstract class. When you call FbxScene::GetEvaluator(), the function creates an instance of a FbxAnimEvalClassic object. The FbxAnimEvalClassic object is the only implementation of the FbxAnimEvaluator class in the current release of FBX SDK.

However, you can implement your own evaluator class derived from the FbxAnimEvaluator class.

Perform the following steps to implement your evaluator class:

1. Call FbxScene::SetEvaluator() to set the evaluator to your own evaluator object.
2. Make the following call:

       FbxAnimEvaluator* mySceneEvaluator = MyScene->GetEvaluator();

Now, the mySceneEvaluator will point to an object of your own evaluator class.

See Evaluating the Animation in a Scene for information on evaluating the animation in a scene.