41 lines (29 with data), 1.5 kB
//
// See #include "<ANYBODY_PATH_MODELUTILS>/Video/VideoLookAtCamera.any" on how
// to use the the class template.
// NOTE: To generate videos FFMPEG must be available on the
// system.
#include "<ANYBODY_PATH_MODELUTILS>/Video/VideoLookAtCamera.any"
VideoLookAtCamera VideoCamera (UP_DIRECTION = y) =
{
VideoName = "StandingModel";
VideoResolution = {1280, 720}; //HD
// Create images in 4x resolution. (Improves video quality)
VideoInputScale = 3;
Camera.Recorder.AntiAlias = 2;
// The point the camera focus
CameraLookAtPoint = Main.HumanModel.BodyModel.Trunk.SegmentsLumbar.PelvisSeg.AnatomicalFrame.r;
// The vertical field of view in meters at the LookAtPoint
CameraFieldOfView = 2;
// Counter for numbering the saved images.
Counter = .iStep;
// The direction which the camera is placed
// (In global coordinates with respect to the LookAtPoint)
CameraDirection = {1, 0.6, -0.6};
// The camera direction can also be time dependent to make a rotating camera.
// CameraDirection = {cos(2*pi*Main.Study.t),0,sin(2*pi*Main.Study.t) };
// The operations which should be included in the video.
Analysis = {
AnyOperation &ref = Main.Study.InverseDynamics;
};
};