Std ViewIvIssueCamPos/de: Difference between revisions

From FreeCAD Documentation
(Created page with "==Skripten==")
(Created page with "Der Befehl '''Std AnsichtKamerapositionAusgeben''' gibt die Kameraeinstellungen der aktiven 3D-Ansicht im Ausgabefenster und in der Python-Konsole aus.")
Line 20: Line 20:
==Beschreibung==
==Beschreibung==


The '''Std ViewIvIssueCamPos''' command prints the camera settings of the active [[3D_view|3D view]] in the [[Report_view|Report view]] and the [[Python_console|Python console]].
Der Befehl '''Std AnsichtKamerapositionAusgeben''' gibt die Kameraeinstellungen der aktiven [[3D_view/de|3D-Ansicht]] im [[Report_view/de|Ausgabefenster]] und in der [[Python_console/de|Python-Konsole]] aus.


{{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 }
{{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 }

Revision as of 21:48, 5 February 2023

Std ViewIvIssueCamPos

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

Beschreibung

Der Befehl Std AnsichtKamerapositionAusgeben gibt die Kameraeinstellungen der aktiven 3D-Ansicht im Ausgabefenster und in der Python-Konsole aus.

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

Anwendung

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

Hinweise

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

Skripten

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