Std ViewRotateLeft/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "==Script==")
(Created page with "{{Emphasis|Voir aussi:}} FreeCAD Script de base.")
Line 32: Line 32:
==Script==
==Script==


{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
{{Emphasis|Voir aussi:}} [[FreeCAD_Scripting_Basics/fr|FreeCAD Script de base]].


To rotate the view to the left use the {{incode|viewRotateLeft}} method of the ActiveView object. This method is not available if FreeCAD is in console mode.
To rotate the view to the left use the {{incode|viewRotateLeft}} method of the ActiveView object. This method is not available if FreeCAD is in console mode.

Revision as of 14:28, 25 April 2020

Std Rotation à gauche

Emplacement du menu
Affichage → Vues standards‏‎ → Rotation à gauche
Ateliers
Tous
Raccourci par défaut
Shift+Left
Introduit dans la version
-
Voir aussi
Std Rotation à droite

Description

La commande Std Rotation à gauche fait pivoter la caméra dans la vue 3D active dans la direction de la vue par incréments de 90 degrés vers la gauche (dans le sens antihoraire).

Utilisation

  1. Il existe plusieurs façons d'appeler la commande:
    • Sélectionnez l'option Affichage → Vues standards → Rotation à gauche dans le menu.
    • Sélectionnez l'option Vues standards → Rotation à gauche dans le menu contextuel de la vue 3D.
    • Utilisez le raccourci clavier: Shift+Gauche.

Script

Voir aussi: FreeCAD Script de base.

To rotate the view to the left use the viewRotateLeft method of the ActiveView object. This method is not available if FreeCAD is in console mode.

import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.viewRotateLeft()
FreeCADGui.ActiveDocument.ActiveView.getCameraOrientation()