Std ViewRotateRight: Difference between revisions

From FreeCAD Documentation
(Marked this version for translation)
(Revised. 'In progress' for now.)
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Page in progress}}

<translate>
<translate>

{{Docnav
|[[Std_ViewRotateLeft|Std ViewRotateLeft]]
|[[Std_FreezeViews|Std FreezeViews]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewRotateLeft.svg
|IconR=
|IconC=Freecad.svg
}}

<!--T:1-->
<!--T:1-->
{{GuiCommand
{{GuiCommand
|Name=Std_RotateRight
|Name=Std ViewRotateRight
|MenuLocation=[[Std View Menu|View]] → Standard views → Rotate Right
|MenuLocation=View → Standard views → Rotate Right
|Shortcut= Shift + Right
|Workbenches=All
|Workbenches=All
|Shortcut={{KEY|Shift}}+{{KEY|Right}}
|SeeAlso=[[Std_ViewRotateLeft|Std ViewRotateLeft]]
}}
}}


Line 12: Line 26:


<!--T:3-->
<!--T:3-->
This tool rotates the 3D view toward the right (clockwise) by 90-degree increments.
The '''Std ViewRotateRight''' command rotates the camera in the active [[3D_view|3D view]] around the view direction in 90-degree increments towards the right (clockwise).


==Usage== <!--T:6-->
==Usage== <!--T:6-->


<!--T:4-->
<!--T:4-->
# There are several ways to invoke the command:
* Press {{KEY|Shift}} + {{KEY|Right}} or go to {{MenuCommand|View → Standard views → Rotate Right}}.
#* Select the {{MenuCommand|View → Standard views → [[Image:Std_ViewRotateRight.svg|16px]] Rotate Right}} option from the menu.
#* Select the {{MenuCommand|Standard views → [[Image:Std_ViewRotateRight.svg|16px]] Rotate Right}} option from the [[3D_view|3D view]] context menu.
#* Use the keyboard shortcut: {{KEY|Shift}}+{{KEY|Right}}.

==Scripting==

{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].

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

</translate>
{{Code|code=
import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.viewRotateRight()
FreeCADGui.ActiveDocument.ActiveView.getCameraOrientation()
}}
<translate>

{{Docnav
|[[Std_ViewRotateLeft|Std ViewRotateLeft]]
|[[Std_FreezeViews|Std FreezeViews]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewRotateLeft.svg
|IconR=
|IconC=Freecad.svg
}}


<!--T:5-->
{{Std Base navi}}
{{Userdocnavi}}
</translate>
</translate>
{{Std Base navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}
{{clear}}

Revision as of 10:02, 28 March 2020

This documentation is a work in progress. Please don't mark it as translatable since it will change in the next hours and days.


Std ViewRotateRight

Menu location
View → Standard views → Rotate Right
Workbenches
All
Default shortcut
Shift+Right
Introduced in version
-
See also
Std ViewRotateLeft

Description

The Std ViewRotateRight command rotates the camera in the active 3D view around the view direction in 90-degree increments towards the right (clockwise).

Usage

  1. There are several ways to invoke the command:
    • Select the View → Standard views → Rotate Right option from the menu.
    • Select the Standard views → Rotate Right option from the 3D view context menu.
    • Use the keyboard shortcut: Shift+Right.

Scripting

See also: FreeCAD Scripting Basics.

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

import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.viewRotateRight()
FreeCADGui.ActiveDocument.ActiveView.getCameraOrientation()