Makro Ausrichtung der Kamera auf die Arbeitsebene

From FreeCAD Documentation
Jump to navigation Jump to search
This page is a translated version of the page Macro Align Camera to Working Plane and the translation is 38% complete.
Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎français • ‎italiano • ‎polski • ‎русский

Macro Align Camera to Working Plane.png Macro Align Camera to Working Plane

Description
This macro aligns the camera to the current Draft Working Plane

Macro version: 0.1
Last modified: 2017-03-16
FreeCAD version: All
Download: ToolBar Icon
Author: yorik
Author
yorik
Download
ToolBar Icon
Links
Macro Version
0.1
Date last modified
2017-03-16
FreeCAD Version(s)
All
Default shortcut
None
See also
Macro Align Working Plane to Camera Macro Align Working Plane to Camera.png

Description

Beschreibung==

Dieses Makro richtet die Kamera auf die aktuelle Draft Working Plane aus.

Usage

Anwendung

Skript

ToolBar Icon Macro Align Camera to Working Plane.png

Macro_Align_Camera_to_Working_Plane.FCMacro

import FreeCAD,FreeCADGui
c = FreeCADGui.ActiveDocument.ActiveView.getCameraNode()
r = FreeCAD.DraftWorkingPlane.getRotation().Rotation.Q
c.orientation.setValue(r)