Macro Align Camera to Working Plane

From FreeCAD Documentation
Revision as of 13:00, 17 September 2021 by David69 (talk | contribs) (Created page with "Icône de la barre d'outils")
Other languages:

Macro Align Camera to Working Plane

Description
Cette macro aligne la caméra sur le plan courant Draft Working Plane

Version macro : 0.1
Date dernière modification : 2017-03-16
Version FreeCAD : All
Téléchargement : ToolBar Icon
Auteur: yorik
Auteur
yorik
Téléchargement
ToolBar Icon
Liens
Version Macro
0.1
Dernière modification
2017-03-16
Version(s) FreeCAD
All
Raccourci clavier
None
Voir aussi
Macro Aligne le Plan à la Camera

Description

Cette macro aligne la caméra sur le Draft Plan de travail en cours.

Utilisation

Script

Icône de la barre d'outils

Macro_Align_Camera_to_Working_Plane.FCMacro

import FreeCAD,FreeCADGui
c = FreeCADGui.ActiveDocument.ActiveView.getCameraNode()
r = FreeCAD.DraftWorkingPlane.getRotation().Rotation.Q
c.orientation.setValue(r)