Rotera vyn med 90°

From FreeCAD Documentation
Revision as of 11:15, 23 May 2020 by FuzzyBot (talk | contribs) (Updating to match new version of source page)

Rotera vyn med 90°

Beskrivning
This macro rotates the current view by 90° to the left. Only works if you are in Top view

Versions makro : 01.00
Datum senaste ändring : 2010-11-17
FreeCAD-versionen : All
Ladda ner : Macro_Rotate_View_view_90_Degrees
Författare : Yorik
Författare
Yorik
Ladda ner
Macro_Rotate_View_view_90_Degrees
länkar
Makroversion
01.00
Datum senaste ändring
2010-11-17
FreeCAD Version(s)
All
Standard genväg
None
Se även
Macro_Rotate_ViewAxonometric
Macro Rotate View Free

Description

Detta makro roterar den nuvarande vyn med 90° åt vänster. Fungerar endast om du är i toppvyn. Macro Rotate View view

Limitations

Only works if you are in Top view: Std_ViewTop XY (top)

Script

ToolBar Icon

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