Std OrthographicCamera: Difference between revisions

From FreeCAD Documentation
(Added 'Preferences'.)
(Mini-cube menu now calls this command.)
 
(8 intermediate revisions by 4 users not shown)
Line 2: Line 2:
<translate>
<translate>


<!--T:15-->
{{Docnav
{{Docnav
|[[Std_ViewCreate|Std ViewCreate]]
|[[Std_ViewCreate|ViewCreate]]
|[[Std_PerspectiveCamera|Std PerspectiveCamera]]
|[[Std_PerspectiveCamera|PerspectiveCamera]]
|[[Std_View_Menu|Std View Menu]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewCreate.svg
|IconL=Std_ViewCreate.svg
Line 28: Line 29:
[[Image:Std_OrthographicCamera_example.svg]]
[[Image:Std_OrthographicCamera_example.svg]]
<translate>
<translate>
<!--T:16-->
{{Caption|Two cubes with the same dimensions in orthographic view}}
{{Caption|Two cubes with the same dimensions in orthographic view}}


==Usage== <!--T:3-->
==Usage== <!--T:3-->


<!--T:17-->
# There are several ways to invoke the command:
# There are several ways to invoke the command:
#* Select the {{MenuCommand|View → [[Image:Std_OrthographicCamera.svg|16px]] Orthographic view}} option from the menu.
#* Select the {{MenuCommand|View → [[Image:Std_OrthographicCamera.svg|16px]] Orthographic view}} option from the menu.
#* Select the {{MenuCommand|[[Image:Std_OrthographicCamera.svg|16px]] Orthographic view}} option from the Mini-cube menu of the [[Navigation_Cube|Navigation Cube]].
#* Use the keyboard shortcut: {{KEY|V}} then {{KEY|O}}.
#* Use the keyboard shortcut: {{KEY|V}} then {{KEY|O}}.


==Preferences==
==Preferences== <!--T:20-->


<!--T:21-->
* The camera type can be changed in the preferences. The selected type will be used for all 3D views of all opened documents and also for new documents. {{MenuCommand|Edit → Preferences... → Display → 3D View → Camera type}}. See [[Preferences_Editor#3D_View|Preferences Editor]].
* The camera type can be changed in the preferences: {{MenuCommand|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. See [[Preferences_Editor#3D_View|Preferences Editor]].


==Scripting==
==Scripting== <!--T:22-->


<!--T:23-->
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].


<!--T:24-->
To change the view to orthographic use the {{incode|setCameraType}} method of the ActiveView object. This method is not available if FreeCAD is in console mode.
To change the view to orthographic use the {{incode|setCameraType}} method of the ActiveView object. This method is not available if FreeCAD is in console mode.


Line 55: Line 62:
<translate>
<translate>


<!--T:25-->
{{Docnav
{{Docnav
|[[Std_ViewCreate|Std ViewCreate]]
|[[Std_ViewCreate|ViewCreate]]
|[[Std_PerspectiveCamera|Std PerspectiveCamera]]
|[[Std_PerspectiveCamera|PerspectiveCamera]]
|[[Std_View_Menu|Std View Menu]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewCreate.svg
|IconL=Std_ViewCreate.svg

Latest revision as of 09:49, 7 June 2023

Std OrthographicCamera

Menu location
View → Orthographic view
Workbenches
All
Default shortcut
V O
Introduced in version
-
See also
Std PerspectiveCamera

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

  1. 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.

Preferences

  • The camera type can be changed in the preferences: 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. See Preferences Editor.

Scripting

See also: FreeCAD Scripting Basics.

To change the view to orthographic use the setCameraType method of the ActiveView object. This method is not available if FreeCAD is in console mode.

import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.setCameraType('Orthographic')
FreeCADGui.ActiveDocument.ActiveView.getCameraType()