# cameraMax reference ## cameraMax.Activate Activates the Max the camera. void **cameraMax.Activate**(int view) int view : set 1 for the first view. Set 0 to deactivate all the views. ## cameraMax.GetPosLookAt Returns camera position and 'look at' point void **cameraMax.GetPosLookAt**([int view]) int view : optional, set 1 for the first view _returns_ point pos, point look_at : camera position and 'look at' point ## cameraMax.IsActive Check if the Max camera is active. bool **cameraMax.IsActive**() ## cameraMax.SetAnimObj Attach camera to the object spot "Camera", looking to another object spot "Target". Camera horizontal FOV is controlled by the spot scale, interpret as radians multiplied by 1000. void **cameraMax.SetAnimObj**(object obj, [int view]) int view : optional, set 1 for the first view ## cameraMax.SetCamera Set camera position and 'look at' point void **cameraMax.SetCamera**(point pos, point look_at, [int time]) point pos : new position of the camera. point look_at : new look at position of the camera. int time : time (ms) to interpolate to the new camera ## cameraMax.SetCameraEx Set camera position and 'look at' point void **cameraMax.SetCameraEx**(int view, point pos, point look_at, [int time]) int view : set 1 for the first view. point pos : new position of the camera. point look_at : new look at position of the camera. int time : time (ms) to interpolate to the new camera ## cameraMax.SetCameraPrecise Set camera position and 'look at' point void **cameraMax.SetCameraPrecise**(point pos, point look_at, [int time]) point pos : new position of the camera multiplied by 1000. point look_at : new look at position of the camera multiplied by 1000. int time : time (ms) to interpolate to the new camera ## cameraMax.SetPositionLookatAndRoll Set camera position,'look at' and roll void **cameraMax.SetPositionLookatAndRoll**(point pos, point look_at, int roll) point pos : new position of the camera. point look_at : new look at position of the camera. int roll : roll angle in minutes (insert footer.md.html here)