Macro Align Camera to Working Plane

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 Align Camera to Working Plane and the translation is 100% complete.
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)