nuke.activeViewer

nuke.activeViewer()ViewerWindow

Return an object representing the active Viewer panel. This is not the same as the Viewer node, this is the viewer UI element.

Returns

Object representing the active ViewerWindow