Macro Align Camera to Working Plane

From FreeCAD Documentation
Revision as of 10:07, 21 December 2021 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)