Recording or taking screenshots of Tait-Bryan Rotation on Object in VTK

Thank you for your help! I actually used both vtkTransformFilter and vtkTransform for the actor, yet the camera was the one rotating instead…I explained this issue with the code in the post link below. If you have time, would you mind if you could help me with this issue?

Hope you had a great Christmas!