Std ViewIvStereoRedGreen: Difference between revisions

From FreeCAD Documentation
m (typo)
mNo edit summary
(6 intermediate revisions by the same user not shown)
Line 31: Line 31:


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

See also: [[Preferences_Editor|Preferences Editor]].


<!--T:8-->
<!--T:8-->
* The eye to eye distance can be changed in the preferences: {{MenuCommand|Edit → Preferences... → Display → 3D View → Eye to eye distance for stereo modes}}. See [[Preferences_Editor#3D_View|Preferences Editor]].
* The eye to eye distance can be changed: {{MenuCommand|Edit → Preferences... → Display → 3D View → Eye to eye distance for stereo modes}}.


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


<!--T:10-->
<!--T:10-->
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].


<!--T:11-->
<!--T:11-->
To change the view to red/cyan stereo use the {{incode|setStereoType}} method of the ActiveView object. This method is not available if FreeCAD is in console mode.
Use the {{incode|setStereoType}} method of the View object to change the stereo mode. The available modes are {{incode|"Anaglyph"}}, {{incode|"QuadBuffer"}}, {{incode|"InterleavedRows"}}, {{incode|"InterleavedColumns"}} and {{incode|"None"}}.


</translate>
</translate>
Line 47: Line 49:
import FreeCADGui
import FreeCADGui


FreeCADGui.ActiveDocument.ActiveView.setStereoType('Anaglyph')
view = FreeCADGui.ActiveDocument.ActiveView
view.setStereoType("Anaglyph")
FreeCADGui.ActiveDocument.ActiveView.getStereoType()
view.getStereoType()
}}
}}
<translate>
<translate>



<!--T:12-->
<!--T:12-->
Line 63: Line 67:


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

Revision as of 18:09, 9 July 2024

Std ViewIvStereoRedGreen

Menu location
View → Stereo → Stereo red/cyan
Workbenches
All
Default shortcut
None
Introduced in version
-
See also
Std ViewIvStereoQuadBuff, Std ViewIvStereoInterleavedRows, Std ViewIvStereoInterleavedColumns, Std ViewIvStereoOff

Description

The Std ViewIvStereoRedGreen command changes the active 3D view to red/cyan, anaglyph, stereo view mode. To use this stereo mode glasses with colored lenses are required.

Usage

  1. Select the View → Stereo → Stereo red/cyan option from the menu.

Preferences

See also: Preferences Editor.

  • The eye to eye distance can be changed: Edit → Preferences... → Display → 3D View → Eye to eye distance for stereo modes.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

Use the setStereoType method of the View object to change the stereo mode. The available modes are "Anaglyph", "QuadBuffer", "InterleavedRows", "InterleavedColumns" and "None".

import FreeCADGui

view = FreeCADGui.ActiveDocument.ActiveView
view.setStereoType("Anaglyph")
view.getStereoType()