< Previous | Contents | Next >
class GLViewer
Parent class: Object
Parent class for 2D and 3D viewers.
2D image viewers are instances of the GLImageViewer subclass and have additional methods to set and show the DoD, RoI or LUT.
Please note that most Set-methods need to be followed by a Redraw() call.

![]()
left = comp.GetPreviewList()[“Left”][“View”]
left_viewer = left.CurrentViewer
# Reach the Left GLViewer
left_viewer.SetChannel(0)
left_viewer.Redraw()
if left_viewer != None:
> Python usage:

![]()
left = comp:GetPreviewList().Left.View
left_viewer = left.CurrentViewer
-- Reach the Left GLViewer
left_viewer:SetChannel(0)
left_viewer:Redraw()
if left_viewer ~= nil then
> Lua usage:
end