Std ViewIvIssueCamPos: Difference between revisions

From FreeCAD Documentation
No edit summary
(Marked this version for translation)
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{UnfinishedDocu{{#translation:}}}}
<translate>
<translate>

<!--T:12-->
{{Docnav
|[[Std_ViewIvStereoOff|Std ViewIvStereoOff]]
|[[Std_ViewZoomIn|Std ViewZoomIn]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewIvStereoOff.svg
|IconR=Std_ViewZoomIn.svg
|IconC=Freecad.svg
}}

<!--T:8-->
<!--T:8-->
{{GuiCommand
{{GuiCommand
|Name=Std ViewIvIssueCamPos
|Name=Std ViewIvIssueCamPos
|MenuLocation={{StdMenu|[[Std View Menu|View]]}} → Stereo → Issue camera position
|MenuLocation=View → Stereo → Issue camera position
|Workbenches=All
|Workbenches=All
|SeeAlso=[[Std_ViewIvStereo]]
|SeeAlso=[[Std_FreezeViews|Std FreezeViews]]
}}
}}


==Description== <!--T:2-->
==Description== <!--T:2-->


<!--T:3-->
<!--T:3-->
The '''Std ViewIvIssueCamPos''' command prints the camera settings of the active [[3D_view|3D view]] in the [[Report_view|Report view]].
[[Image:CameraPosition1_it.png|CameraPosition1_it.png]]

</translate>
{{Code|code= OrthographicCamera { viewportMapping ADJUST_CAMERA position 57.73505 -57.73502 57.735027 orientation 0.74290609 0.30772209 0.59447283 1.2171158 nearDistance 81.588844 farDistance 109.60551 aspectRatio 1 focalDistance 100 height 100 }
}}
<translate>
<!--T:13-->
{{Caption|Example output: camera settings after changing to [[Std_ViewIsometric|isometric view]] in a new document}}


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


<!--T:10-->
<!--T:10-->
# Use the {{MenuCommand|{{StdMenu|[[Std View Menu|View]]}} → Stereo → Issue camera position}} entry in the View menu.
# Select the {{MenuCommand|View → Stereo → [[Image:Std_ViewIvIssueCamPos.svg|16px]] Issue camera position}} option from the menu.


<!--T:7-->
==Notes== <!--T:14-->

{{Std Base navi}}
<!--T:15-->
* The camera settings can be used to add frozen views to a *.cam file. See [[Std_FreezeViews|Std FreezeViews]].

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

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

<!--T:18-->
The {{incode|getCamera}} method of the ActiveView object returns the same camera settings in a single string. This method is not available if FreeCAD is in console mode.

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

FreeCADGui.ActiveDocument.ActiveView.getCamera()
}}
<translate>

<!--T:19-->
{{Docnav
|[[Std_ViewIvStereoOff|Std ViewIvStereoOff]]
|[[Std_ViewZoomIn|Std ViewZoomIn]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewIvStereoOff.svg
|IconR=Std_ViewZoomIn.svg
|IconC=Freecad.svg
}}


<!--T:11-->
{{Userdocnavi}}
</translate>
</translate>
{{Std Base navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}
{{clear}}

Revision as of 20:35, 9 April 2020

Std ViewIvIssueCamPos

Menu location
View → Stereo → Issue camera position
Workbenches
All
Default shortcut
None
Introduced in version
-
See also
Std FreezeViews

Description

The Std ViewIvIssueCamPos command prints the camera settings of the active 3D view in the Report view.

OrthographicCamera {   viewportMapping ADJUST_CAMERA   position 57.73505 -57.73502 57.735027   orientation 0.74290609 0.30772209 0.59447283  1.2171158   nearDistance 81.588844   farDistance 109.60551   aspectRatio 1   focalDistance 100   height 100  }

Example output: camera settings after changing to isometric view in a new document

Usage

  1. Select the View → Stereo → Issue camera position option from the menu.

Notes

  • The camera settings can be used to add frozen views to a *.cam file. See Std FreezeViews.

Scripting

See also: FreeCAD Scripting Basics.

The getCamera method of the ActiveView object returns the same camera settings in a single string. This method is not available if FreeCAD is in console mode.

import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.getCamera()