Macro Align Camera to Working Plane: Difference between revisions
Renatorivo (talk | contribs) No edit summary |
m (Macro_Align_Camera_to_Working_Plane) |
||
Line 14: | Line 14: | ||
==Script== <!--T:4--> |
==Script== <!--T:4--> |
||
</translate> |
</translate> |
||
''' |
'''Macro_Align_Camera_to_Working_Plane.FCMacro''' |
||
{{Code|code= |
{{Code|code= |
Revision as of 19:15, 7 August 2018
File:Text-x-python 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 Author: yorik |
Author |
yorik |
Download |
None |
Links |
Macros recipes How to install macros How to customize toolbars |
Macro Version |
0.1 |
Date last modified |
2017-03-16 |
FreeCAD Version(s) |
None |
Default shortcut |
None |
See also |
None |
Description
This macro aligns the camera to the current Draft Working Plane
How to use
- Set the Draft Working Plane to your likings
- Run the macro
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)