Std ViewRear: Difference between revisions

From FreeCAD Documentation
No edit summary
(Revised. 'In progress' for now.)
Line 1: Line 1:
<languages/>
<languages/>

{{Page in progress}}

<translate>
<translate>

{{Docnav
|[[Std_ViewRight|Std ViewRight]]
|[[Std_ViewBottom|Std ViewBottom]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewRight.svg
|IconR=Std_ViewBottom.svg
|IconC=Freecad.svg
}}

<!--T:5-->
<!--T:5-->
{{GuiCommand
{{GuiCommand
|Name=Std ViewRear
|Name=Std ViewRear
|MenuLocation={{StdMenu|[[Std View Menu|View]]}} → Standard views → Rear
|MenuLocation=View → Standard views → Rear
|Workbenches=All
|Workbenches=All
|Shortcut=4
|Shortcut={{KEY|4}}
|SeeAlso=[[Std_ViewBottom|ViewBottom]], [[Std_ViewLeft|ViewLeft]]
|SeeAlso=[[Std_ViewBottom|Std ViewBottom]], [[Std_ViewLeft|Std ViewLeft]]
}}
}}


Line 13: Line 26:


<!--T:7-->
<!--T:7-->
[[Std_ViewRear|Std ViewRear]] puts the camera in the [[3D view|3D view]] looking towards the front from the back, in the direction of the negative Y axis, {{incode|[0.0, -1.0, 0.0]}}.
The '''Std ViewRear''' command points the camera in the active [[3D_view|3D view]] in the direction of the negative Y axis.


</translate>
</translate>
[[File:FreeCAD_views_rear.svg]]
[[Image:FreeCAD_views_rear.svg]]
<translate>
<translate>
<!--T:4-->
<!--T:4-->
{{Caption|The rear view sets the camera looking to the front, in the direction of the negative Y axis.}}
{{Caption|Arrow 4 points in the direction of the rear view}}


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


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


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


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


<!--T:12-->
<!--T:12-->
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 rear view use the {{incode|viewRear}} 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.viewRear()


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

{{Docnav
|[[Std_ViewRight|Std ViewRight]]
|[[Std_ViewBottom|Std ViewBottom]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewRight.svg
|IconR=Std_ViewBottom.svg
|IconC=Freecad.svg
}}


</translate>
</translate>

Revision as of 08:43, 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 ViewRear

Menu location
View → Standard views → Rear
Workbenches
All
Default shortcut
4
Introduced in version
-
See also
Std ViewBottom, Std ViewLeft

Description

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

Arrow 4 points in the direction of the rear view

Usage

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

Scripting

See also: FreeCAD Scripting Basics.

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

import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.viewRear()
FreeCADGui.ActiveDocument.ActiveView.getViewDirection()