nuke.ViewerWindow

class nuke.ViewerWindow

Bases: object

Methods

activateInput

self.activateInput(input, secondary=False) -> None Set the given viewer input to be active - i.

activeInput

self.activeInput(secondary=False) -> int Returns the currently active input of the viewer - i.

frameControl

self.frameControl(i) -> True.

getCurrentErrorMessage

self.getCurrentErrorMessage() -> Error.

getGLCameraMatrix

self.getGLCameraMatrix() -> Matrix4 Return the world transformations of the current GL viewer camera.

getGeometryNodes

self.getGeometry() -> None Returns the a list of geometry nodes attached with this viewer :return: Nodes: a list of the geometry nodes.

getStatusMessage

self.getStatusMessage() -> str.

hideStatusMessage

self.hideStatusMessage() -> None.

isOverlayShown

self.isOverlayShown() -> Bool.

nextView

self.nextView() -> switch to next view in settings Views list.

node

self.node() -> Node.

play

Play forward (1) or reverse (0).

previousView

self.previousView() -> switch to previous view in settings Views list.

setView

self.setView(s) -> set 'current' multi-view view to 's'.

showOverlay

self.showOverlay(show) -> Bool.

showStatusMessage

self.showStatusMessage() -> None.

stop

Stop playing.

view

self.view() -> string name of 'current' multi-view view.

activateInput(input, secondary=False) None

Set the given viewer input to be active - i. e. show its image in the output window. :param input: The viewer input number, starting with 0 for the first. If the input is not connected, a ValueError exception is raised. :param secondary: True if the input should be connected as the secondary (wipe) input, or False to connect it as the primary input (the default). :return: None

activeInput(secondary=False) int

Returns the currently active input of the viewer - i. e. the one with its image in the output window. :param secondary: True to return the index of the active secondary (wipe) input, or False (the default) to return the primary input. :return: int: The currently active input of the viewer, starting with 0 for the first, or None if no input is active.

frameControl(i) True.

i is an integer indicating viewer frame control ‘button’ to execute:

-6 go to start -5 play reverse -4 go to previous keyframe -3 step back by increment -2 go back previous keyframe or increment, whichever is closer -1 step back one frame

0 stop

+1 step forward one frame +2 go to next keyframe or increment, whichever is closer +3 step forward by increment +4 go to next keyframe +5 play forward +6 go to end

getCurrentErrorMessage() Error.

Returns the error currently displayed in this viewer. :return: Error string if an error is present, otherwise None.

getGLCameraMatrix() Matrix4

Return the world transformations of the current GL viewer camera. :return: Matrix4: GL camera world transformation.

getGeometryNodes()

self.getGeometry() -> None Returns the a list of geometry nodes attached with this viewer :return: Nodes: a list of the geometry nodes.

getStatusMessage() str.
Returns:

The status message in the viewer.

hideStatusMessage() None.

Hides the status message in the viewer. :return: None.

isOverlayShown() Bool.
Returns:

True if the overlay is visible, False otherwise.

nextView() switch to next view in settings Views list.
node() Node.

Returns the Viewer node currently associated with this window. :return: Node.

play()

Play forward (1) or reverse (0).

previousView() switch to previous view in settings Views list.
setView(s) set 'current' multi-view view to 's'.
showOverlay(show) Bool.

Activates or deactivates the overlay in the viewer. :param show: True to activate the overlay, False to deactivate the overlay. :return: True if the overlay was activated or deactivated, False otherwise.

showStatusMessage() None.

Shows the status message in the viewer. :return: None.

stop()

Stop playing.

view() string name of 'current' multi-view view.