How to create a tracking shot

 // Move with "tool::moveCameraFree" your camera where you want a node in your animation sequence and capture its location.
 if (spControl->mouseHit(io::MOUSE_LEFT))
 {
     const dim::vector3df Pos(Cam->getPosition(true));
     const dim::quaternion Rot(dim::quaternion(Cam->getRotationMatrix(true)).getInverse());
     
     // Store it in a file where you can copy and paste the code.
     File->writeStringN(
         "Anim->addSequence(dim::vector3df(" + io::stringc(Pos.X) + ", " + io::stringc(Pos.Y) + ", " + io::stringc(Pos.Z) +
         "), dim::quaternion(" + io::stringc(Rot.X) + ", " + io::stringc(Rot.Y) + ", " + io::stringc(Rot.Z) + ", " + io::stringc(Rot.W) + "));"
     );
 }
 
 // ...
 
 // After creating your sequence copy and paste the generated code to create your animation and do some configurations.
 Anim->setSplineTranslation(true);
 Anim->setSpeed(0.01f);
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines