Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.32 KB

Macro_Rotate_View.md

File metadata and controls

40 lines (30 loc) · 1.32 KB

Macro Rotate View

{{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 }}

Description

This macro rotates the current view by 90° to the left.

Limitations

Only works if you are in Top view: Std_ViewTop|16px|link=Std_ViewTop XY (top)

Script

ToolBar Icon

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