fusion_addin_framework.utils.camera_zoom¶
- fusion_addin_framework.utils.camera_zoom(factor: int, camera: Optional[adsk.core.Camera] = None, apply_camera: bool = False) → adsk.core.Camera¶
Adjusts the cameras viewWxtents by zooming. A zoom factor of n results in the viewport being zoomed in to show only 1/n th area of the previous area.
- Parameters
factor (int) – The zoom factor
camera (adsk.core.Camera, optional) – A camera instance which gets adapted. Defaults to the currently active camera.
apply_camera (bool, optional) – Defines whether the modified camera is set as the active camera. Defaults to False.
- Returns
The adjusted camera.
- Return type
adsk.core.Camera