I assume you are using ofCamera or ofEasyCam.
The thing to know about ofCamera’s orientation, position and scale is that these things are stored inside the camera class as part of a transformation Matrix, known as the ModelViewMatrix.
If you get this matrix, and save it somewhere for later, you can apply it down the line to set your camera to the saved position. You might also want to get & store additioinal float parameters such as fov and far and near settings, to have a more complete record of your camera.
Here’s an example:
// ---- ofApp.h
// ----- ofApp.cpp
myStoredCameraMatrix = testCam.getModelViewMatrix();
// ofMatrix4x4 myStoredCameraMatrix = ofMatrix4x4::getInverseOf(testCam.getGlobalTransformMatrix()); // alternative notation
// this is where you set the camera back to the stored position: