Macro Align Camera to Working Plane: Difference between revisions

From FreeCAD Documentation
m (icon)
m (icon)
Line 11: Line 11:
|Download=[https://www.freecadweb.org/wiki/images/f/fd/Macro_Align_Camera_to_Working_Plane.png ToolBar Icon]
|Download=[https://www.freecadweb.org/wiki/images/f/fd/Macro_Align_Camera_to_Working_Plane.png ToolBar Icon]
|FCVersion=All
|FCVersion=All
|SeeAlso=[[Macro Align Working Plane to Camera|Macro Align Working Plane to Camera]] [[File:Macro_Align_Working_Plane_to_Camera.png|24px]]
}}
}}



Revision as of 11:27, 8 June 2019

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

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)