Macro Ruota la vista di 90°

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

Ruota la vista di 90°

Descrizione
Questa macro ruota la vista corrente di 90° a sinistra. Funziona solo se si è in vista dall'alto

Versione macro: 01.00
Ultima modifica: 2010-11-17
Versione FreeCAD: Tutte
Download: Macro_Rotate_View_view_90_Degrees
Autore: Yorik
Autore
Yorik
Download
Macro_Rotate_View_view_90_Degrees
Link
Versione macro
01.00
Data ultima modifica
2010-11-17
Versioni di FreeCAD
Tutte
Scorciatoia
Nessuna
Vedere anche
Macro_Rotate_ViewAxonometric
Macro Rotate View Free

Descrizione

Questa macro ruota la vista corrente di 90° a sinistra. Funziona solo se si è in vista dall'alto 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