Std ViewRotateRight: Difference between revisions

From FreeCAD Documentation
m (moved templates out of translation tags + Added {{KEY}} and link)
No edit summary
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
<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={{StdMenu|[[Std View Menu|View]]}} → Standard views → Rotate Right
|MenuLocation=View → Standard views → Rotate Right
|Shortcut= {{KEY|Shift}} + {{KEY|Right}}
|Workbenches=All
|Workbenches=All
|Shortcut={{KEY|Shift}}+{{KEY|Right}}
|SeeAlso=[[Std_ViewRotateLeft|Rotate Left]]
|SeeAlso=[[Std_ViewRotateLeft|Std ViewRotateLeft]]
}}
}}


Line 13: Line 23:


<!--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|{{StdMenu|[[Std View Menu|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
}}


</translate>
</translate>
{{clear}}
{{Std Base navi{{#translation:}}}}
{{Std Base navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Revision as of 17:33, 1 April 2020

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()