Macro Rotate View/it: Difference between revisions
mNo edit summary |
m (Replaced content with "==Descrizione==") |
||
Line 12: | Line 12: | ||
}} |
}} |
||
<div class="mw-translate-fuzzy"> |
|||
==Descrizione== |
==Descrizione== |
||
Questa macro ruota la vista corrente di 90° a sinistra. Funziona solo se si è in vista dall'alto |
|||
[[File:Macro_Rotate_View_view_90_Degrees.png| rotation 90 degrees ]] |
|||
</div> |
|||
This macro rotates the current view by 90° to the left. Only works if you are in Top view [[File:Macro_Rotate_View_view_90_Degrees.png|rotation 90 degrees]] |
This macro rotates the current view by 90° to the left. Only works if you are in Top view [[File:Macro_Rotate_View_view_90_Degrees.png|rotation 90 degrees]] |
Revision as of 09:28, 8 June 2019
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 |
Raccolta di macro Come installare le macro Personalizzare la toolbar |
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
This macro rotates the current view by 90° to the left. Only works if you are in Top view
Script
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