Macro Rotate View
| Description |
|---|
| This macro rotates the current view by 90° to the left. Only works if you are in Top view. Macro version: 01.00 Last modified: 2010-11-17 FreeCAD version: All Download: ToolBar Icon Author: Yorik |
| Author |
| Yorik |
| Download |
| ToolBar Icon |
| Links |
| Macros recipes How to install macros How to customize toolbars |
| Macro Version |
| 01.00 |
| Date last modified |
| 2010-11-17 |
| FreeCAD Version(s) |
| All |
| Default shortcut |
| None |
| See also |
| Macro Rotate ViewAxonometric, Macro Rotate View Free |
Description
This macro rotates the current view by 90° to the left.
Limitations
Only works if you are in Top view: XY (top)
Script
Macro_Rotate_View_90_Degrees.FCMacro
import math from pivy import coin cam = Gui.ActiveDocument.ActiveView.getCameraNode() rot = coin.SbRotation() rot.setValue(coin.SbVec3f(0,0,1),math.pi/2) nrot = cam.orientation.getValue() * rot cam.orientation = nrot
