Macro Align Camera to Working Plane: Difference between revisions

From FreeCAD Documentation
mNo edit summary
(Undo revision 1034758 by Roy 043 (talk))
Tag: Undo
 
(2 intermediate revisions by the same user not shown)
Line 15: Line 15:
}}
}}


==Description==
==Description== <!--T:5-->


<!--T:2-->
<!--T:2-->
This macro aligns the camera to the current [[Draft SelectPlane|Draft Working Plane]]
This macro aligns the camera to the current [[Draft SelectPlane|Draft Working Plane]]


==Usage==
==Usage== <!--T:6-->


<!--T:3-->
<!--T:3-->
Line 28: Line 28:
==Script== <!--T:4-->
==Script== <!--T:4-->


<!--T:7-->
ToolBar Icon
ToolBar Icon
</translate>
</translate>

Latest revision as of 10:07, 21 December 2021

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

Usage

Script

ToolBar Icon

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)