Rotera vyn med 90°

From FreeCAD Documentation
Jump to navigation Jump to search
This page is a translated version of the page Macro Rotate View and the translation is 43% complete.
Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎polski • ‎svenska • ‎čeština • ‎русский

Macro Rotate View view 90 Degrees.png 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 with Z pointing upwards .png Macro Rotate View with Y pointing upwards .png
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 view 90 Degrees.png

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