setCameraAutoPos
Turns the camera auto positioning on or off.
Signatures
- Paramate.Viewport.setCameraAutoPos( cameraAutoPos )
Details
Automatic camera positioning mechanism adjusts the camera view so that the following conditions are fulfilled:
- the 3d model lies fully within the viewport
- the 3d model is not protruding from the viewport when rotating it
The camera aperture and view direction is not changed by the function.
When automatic camera positioning is turned on, this is applied whenever the 3d model or the camera changes (e.g. on calling setCamera
An automatic camera positioning can always be triggered by the autoPosCamera()function.
Parameters
- cameraAutoPos
-
'true' enables the camera auto positioning, 'false' disables it.