Std PerspectiveCamera: Difference between revisions

From FreeCAD Documentation
(Mini-cube menu now calls this command.)
(Marked this version for translation)
 
(One intermediate revision by the same user not shown)
Line 42: Line 42:
==Preferences== <!--T:17-->
==Preferences== <!--T:17-->


<!--T:18-->
<!--T:23-->
See [[Std_OrthographicCamera#Preferences|Std OrthographicCamera]].
* 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== <!--T:19-->
==Scripting== <!--T:19-->


<!--T:20-->
<!--T:24-->
See [[Std_OrthographicCamera#Scripting|Std OrthographicCamera]].
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].


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

</translate>
{{Code|code=
import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.setCameraType('Perspective')
FreeCADGui.ActiveDocument.ActiveView.getCameraType()
}}
<translate>


<!--T:22-->
<!--T:22-->
Line 73: Line 62:


</translate>
</translate>
{{Std Base navi{{#translation:}}}}
{{Std_Base_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 18:12, 9 July 2024

Std PerspectiveCamera

Menu location
View → Perspective view
Workbenches
All
Default shortcut
V P
Introduced in version
-
See also
Std OrthographicCamera

Description

The Std PerspectiveCamera command switches the camera in the active 3D view to perspective view mode. In this mode, objects that are further from the camera appear smaller than those that are closer.

Two cubes with the same dimensions in perspective view

Usage

  1. There are several ways to invoke the command:
    • Select the View → Perspective view option from the menu.
    • Select the Perspective view option from the Mini-cube menu of the Navigation Cube.
    • Use the keyboard shortcut: V then P.

Preferences

See Std OrthographicCamera.

Scripting

See Std OrthographicCamera.