Macro Rotate View

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.

Girar vista por 90°

Descripción
Esta macro gira la vista actual 90º a la izquierda. Sólo funciona si estas en la vista en planta

Versión macro : 01.00
Fecha última modificación : 2010-11-17
Versión FreeCAD : All
Descargar : Macro_Rotate_View_view_90_Degrees
Autor : Yorik
Autor
Yorik
Descargar
Macro_Rotate_View_view_90_Degrees
Enlace
Versión Macro
01.00
Fecha última modificación
2010-11-17
Versión(es) FreeCAD
All
Acceso directo predeterminado
None
Ver también
Macro_Rotate_ViewAxonometric
Macro Rotate View Free

Descripción

Esta macro gira la vista actual 90º a la izquierda. Sólo funciona si estas en la vista en planta 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