Std ViewIvIssueCamPos: Difference between revisions

From FreeCAD Documentation
No edit summary
(Marked this version for translation)
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Page in progress}}

<translate>
<translate>


<!--T:12-->
{{Docnav
{{Docnav
|[[Std_ViewIvStereoOff|Std ViewIvStereoOff]]
|[[Std_ViewIvStereoOff|Std ViewIvStereoOff]]
Line 14: Line 12:
}}
}}


<!--T:8-->
{{GuiCommand
{{GuiCommand
|Name=Std OrthographicCamera
|Name=Std ViewIvIssueCamPos
|MenuLocation=View → Orthographic view
|MenuLocation=View → Stereo → Issue camera position
|Workbenches=All
|Workbenches=All
|SeeAlso=[[Std_FreezeViews|Std FreezeViews]]
|Shortcut={{KEY|V}} {{KEY|O}}
|SeeAlso=[[Std_PerspectiveCamera|Std PerspectiveCamera]]
}}
}}


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


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


</translate>
==Usage==
{{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-->
# There are several ways to invoke the command:
#* Press the {{Button|[[Image:Std_Undo.svg|16px]] [[Std_Undo|Std Undo]]}} button.
#* Select the {{MenuCommand|View → [[Image:Std_Undo.svg|16px]] Undo}} option from the menu.
#* Use the keyboard shortcut: {{KEY|V}} then {{KEY|O}}.


<!--T:10-->
==Options==
# Select the {{MenuCommand|View → Stereo → [[Image:Std_ViewIvIssueCamPos.svg|16px]] Issue camera position}} option from the menu.


==Notes== <!--T:14-->
* Press {{KEY|Esc}} or the {{Button|Cancel}} button to abort the command.


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


==Scripting== <!--T:16-->
* Todo.


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


<!--T:18-->
* Todo.
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>
==Properties==
{{Code|code=
import FreeCADGui


FreeCADGui.ActiveDocument.ActiveView.getCamera()
* Todo.
}}

<translate>
==Scripting==

* Todo.


<!--T:19-->
{{Docnav
{{Docnav
|[[Std_ViewIvStereoOff|Std ViewIvStereoOff]]
|[[Std_ViewIvStereoOff|Std ViewIvStereoOff]]

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()