{{Macro
|Name=Rotate View by 90°
|Icon=Macro Rotate View view 90 Degrees.png
|Description=This macro rotates the current view by 90° to the left. Only works if you are in Top view.
|Author=Yorik
|Version=01.00
|Date=2010-11-17
|FCVersion=All
|Download=[https://www.freecadweb.org/wiki/images/a/a0/Macro_Rotate_View_view_90_Degrees.png Macro_Rotate_View_view_90_Degrees]
|SeeAlso=Macro_Rotate_ViewAxonometric [ [
Macro Rotate View Free
}}
This macro rotates the current view by 90° to the left.
Only works if you are in Top view: XY (top)
Macro_Rotate_View_90_Degrees.FCMacro
{{MacroCode|code= 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 }}
documentation index > Macro Rotate View