Std ViewRight: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Page in progress}}

<translate>
<translate>

{{Docnav
|[[Std_ViewTop|Std ViewTop]]
|[[Std_ViewRear|Std ViewRear]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewTop.svg
|IconR=Std_ViewRear.svg
|IconC=Freecad.svg
}}

<!--T:1-->
<!--T:1-->
{{GuiCommand
{{GuiCommand
|Name=Std ViewRight
|Name=Std ViewRight
|MenuLocation={{StdMenu|[[Std View Menu|View]]}} → Standard views → Right
|MenuLocation=View → Standard views → Right
|Workbenches=All
|Workbenches=All
|Shortcut=3
|Shortcut={{KEY|3}}
|SeeAlso=[[Std_ViewFront|ViewFront]], [[Std_ViewTop|ViewTop]]
|SeeAlso=[[Std_ViewFront|Std ViewFront]], [[Std_ViewTop|Std ViewTop]]
}}
}}


Line 13: Line 26:


<!--T:3-->
<!--T:3-->
[[Std_ViewRight|Std ViewRight]] puts the camera in the [[3D view|3D view]] looking from the right, towards the left, in the direction of the negative X axis, {{incode|[-1.0, 0.0, 0.0]}}.
The '''Std ViewRight''' command points the camera in the active [[3D_view|3D view]] in the direction of the negative X axis.


</translate>
</translate>
[[File:FreeCAD_views_front.svg]]
[[Image:FreeCAD_views_front.svg]]
<translate>
<translate>
<!--T:4-->
<!--T:4-->
{{Caption|The right view sets the camera looking left, in the direction of the negative X axis.}}
{{Caption|Arrow 3 points in the direction of the right view}}


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


<!--T:6-->
<!--T:6-->
# There are several ways to invoke the command:
* Go to the menu {{MenuCommand|{{StdMenu|[[Std View Menu|View]]}} → Standard views → [[File:Std_ViewRight.svg|16px]] [[Std_ViewRight|Right]]}}.
* Or press the {{Button|[[File:Std_ViewRight.svg|16px]] [[Std_ViewRight|Right]]}} button.
#* Press the {{Button|[[Image:Std_ViewRight.svg|16px]] [[Std_ViewRight|Std ViewRight]]}} button.
#* Select the {{MenuCommand|View → Standard views → [[Image:Std_ViewRight.svg|16px]] Right}} option from the menu.
* Or press {{KEY|3}} in the numerical pad of the keyboard.
#* Select the {{MenuCommand|Standard views → [[Image:Std_ViewRight.svg|16px]] Right}} option from the [[3D_view|3D view]] context menu.
#* Use the keyboard shortcut: {{KEY|3}}.


== Scripting == <!--T:7-->
==Scripting== <!--T:7-->


<!--T:8-->
<!--T:8-->
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
The right view can be set from the [[Python console|Python console]].


<!--T:9-->
<!--T:9-->
It is a method of the {{incode|ActiveView}} of the {{incode|ActiveDocument}}. The {{incode|ActiveView}} only exists when the graphical interface is available; it does not exist when FreeCAD is used in purely console mode.
To change to right view use the {{incode|viewRight}} method of the ActiveView object. This method is not available if FreeCAD is in console mode.


</translate>
</translate>
{{Code|code=
{{Code|code=
import FreeCADGui as Gui
import FreeCADGui
Gui.ActiveDocument.ActiveView.viewRight()


Gui.ActiveDocument.ActiveView.getViewDirection()
FreeCADGui.ActiveDocument.ActiveView.viewRight()
FreeCADGui.ActiveDocument.ActiveView.getViewDirection()
}}
}}
<translate>
<translate>

{{Docnav
|[[Std_ViewTop|Std ViewTop]]
|[[Std_ViewRear|Std ViewRear]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewTop.svg
|IconR=Std_ViewRear.svg
|IconC=Freecad.svg
}}


</translate>
</translate>

Revision as of 08:28, 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 ViewRight

Menu location
View → Standard views → Right
Workbenches
All
Default shortcut
3
Introduced in version
-
See also
Std ViewFront, Std ViewTop

Description

The Std ViewRight command points the camera in the active 3D view in the direction of the negative X axis.

Arrow 3 points in the direction of the right view

Usage

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

Scripting

See also: FreeCAD Scripting Basics.

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

import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.viewRight()
FreeCADGui.ActiveDocument.ActiveView.getViewDirection()