Text-x-python.png Macro Align Camera to Working Plane

Description
This macro aligns the camera to the current Draft Working Plane
Author
yorik
Links
Macros recipes
How to install macros
How to customize toolbars
Version
0.1


Description

This macro aligns the camera to the current Draft Working Plane

How to use

Script

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) 
Other languages:
English