Std ViewIvStereoRedGreen: Difference between revisions

From FreeCAD Documentation
mNo edit summary
(Scripting)
Line 43: Line 43:


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


</translate>
</translate>

Revision as of 13:11, 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 in the preferences: Edit → Preferences... → Display → 3D View → Eye to eye distance for stereo modes.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To change the view to red/cyan stereo use the setStereoType method of the ActiveView object. The available stereo modes are "Anaglyph", "QuadBuffer", "InterleavedRows", "InterleavedColumns" and "None". This method is not available if FreeCAD is in console mode.

import FreeCADGui

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