GuiCommand: Name: Std OrthographicCamera MenuLocation: View , Orthographic view Workbenches: All Shortcut: V O SeeAlso: Std_PerspectiveCamera
Std OrthographicCamera
Description
The Std OrthographicCamera command switches the camera in the active 3D view to orthographic view mode. In this mode, objects that are further from the camera do not appear smaller than those that are closer.
Two cubes with the same dimensions in orthographic view
Usage
- There are several ways to invoke the command:
- Select the View →
Orthographic view option from the menu.
- Select the
Orthographic view option from the Mini-cube menu of the Navigation Cube.
- Use the keyboard shortcut: V then O.
- Select the View →
Preferences
See also: Preferences Editor.
- The camera type can be changed: Edit → Preferences... → Display → 3D View → Camera type. The selected type will be used for all 3D views of all opened documents and also for new documents.
Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
Use the setCameraType
method of the View object to change to orthographic or perspective mode.
import FreeCADGui
view = FreeCADGui.ActiveDocument.ActiveView
view.setCameraType("Perspective")
view.setCameraType("Orthographic")
view.getCameraType()
⏵ documentation index > Std OrthographicCamera
This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/Std_OrthographicCamera.md