Makro Otočení pohledu

From FreeCAD Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This page is a translated version of the page Macro Rotate View and the translation is 38% complete.
Outdated translations are marked like this.

Rotate View by 90°

Popis
Toto makro otočí objekt o 90° doleva. Funguje jen pokud jste v pohledu shora

Version macro : 01.00
Date last modification : 2010-11-17
FreeCAD version : All
Download : Macro_Rotate_View_view_90_Degrees
Autor: Yorik
Autor
Yorik
Download
Macro_Rotate_View_view_90_Degrees
Odkazy
Verze
01.00
Datum poslední úpravy
2010-11-17
Verze FreeCAD
All
Výchozí zástupce
None
Viz též
Macro_Rotate_ViewAxonometric
Macro Rotate View Free

Description

Toto makro otočí objekt o 90° doleva. Funguje jen pokud jste v pohledu shora rotation 90 degrees

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