visual3d:documentation:pipeline:other_commands:set_camera_perspective
Table of Contents
Set Camera Perspective
The Set Camera Perspective command can be used to set the viewing perspective of an animation in Visual3D using a command, as opposed to manually setting perspective. The command can also be used to explicitly track the movement of a segment or of a segment's center of mass.
Pipeline Command
The Set Camera Perspective command can be found in the pipeline workshop within the other folder as so:
Set_Camera_Perspective ! /TRACK_CAMERA_USING_SEGMENT=FALSE ! /TRACK_CAMERA_USING_SEGMENT_COM=FALSE ! /SEGMENT= ! /CAMERA_X_CENTER=0.0 ! /CAMERA_Y_CENTER=0.0 ! /CAMERA_Z_CENTER=0.0 ! /CAMERA_ZOOM=2.0 ! /CAMERA_PAN=0.0 ! /CAMERA_TILT=0.0 ! /ANIMATION_FRAME= ;
Command Parameters
The Parameters used to define the function are as follows:
| Set Camera Perspective | |
| /TRACK_CAMERA_USING_SEGMENT | True or False: Set perspective to track a specified segment's motion |
| !/TRACK_CAMERA_USING_SEGMENT_COM | True or False: Set perspective to track a specified segment's center of mass |
| !/CAMERA_X/Y/Z_CENTER | X/Y/Z coordinates of frame center |
| /CAMERA_ZOOM | Default Zoom = 2.000 |
| /CAMERA_PAN | Horizontal pan angle |
| /CAMERA_TILT | Vertical tilt angle |
| /ANIMATION_FRAME | Set camera view to specific animation frame |
Dialog
The command can be controlled by editing the parameters above as text or using the dialog shown below:
Example 1: Do not change any cameras settings but jump to frame number 21
Set_Camera_Perspective /TRACK_CAMERA_USING_SEGMENT= !/TRACK_CAMERA_USING_SEGMENT_COM= /SEGMENT= /CAMERA_X_CENTER= /CAMERA_Y_CENTER= /CAMERA_Z_CENTER= !/CAMERA_ZOOM= /CAMERA_PAN= /CAMERA_TILT= /ANIMATION_FRAME=21 ;
Example 2: Do not change any camera settings but jump to the frame that is the second instance of the event label Left Foot Off
Set_Camera_Perspective /TRACK_CAMERA_USING_SEGMENT= !/TRACK_CAMERA_USING_SEGMENT_COM= /SEGMENT= /CAMERA_X_CENTER= /CAMERA_Y_CENTER= /CAMERA_Z_CENTER= !/CAMERA_ZOOM= /CAMERA_PAN= /CAMERA_TILT= /ANIMATION_FRAME=Get_Frame_Number(EVENT_LABEL::ORIGINAL::Left Foot Off[2,1]) ;
Example 3: Track Pelvis Segment Center of Mass
Set_Camera_Perspective ! /TRACK_CAMERA_USING_SEGMENT=FALSE /TRACK_CAMERA_USING_SEGMENT_COM=TRUE /SEGMENT=RPV /CAMERA_X_CENTER=0.000 /CAMERA_Y_CENTER=0.000 /CAMERA_Z_CENTER=0.000 /CAMERA_ZOOM=2.000 /CAMERA_PAN=0.000 /CAMERA_TILT=0.000 ! /ANIMATION_FRAME= ;
visual3d/documentation/pipeline/other_commands/set_camera_perspective.txt · Last modified: by wikisysop
