nuke.ViewerProcess

class nuke.ViewerProcess

Bases: object

Methods

node

Returns a ViewerProcess node.

register

Register a ViewerProcess.

registeredNames

Returns a list containing the names of all currently regisered ViewerProcesses.

restoreSelectionAfterReload

Restores the viewer process selection after an OCIO or Nuke Config has been reloadedthis is normally called after nuke.ViewerProcess.storeSelectionBeforeReload():return: None.

storeSelectionBeforeReload

When the user reloads an OCIO or Nuke config the viewer process selection is stored in the the viewer process objectFollowing the reload you can call nuke.ViewerProcess.restoreSelectionAfterReload() which will then restore the selection instead of the default.:return: None.

unregister

Unregister a ViewerProcess.

node(name, viewer) → Node.

Returns a ViewerProcess node. Default is to return the current selected one. This is a class method. :param name: Optional ViewerProcess name. :param viewer: Optional viewer name. :return: Node.

register(name, call, args, kwargs) → None.

Register a ViewerProcess. This is a class method. :param name: Menu name. :param call: Python callable. Must return a Node. :param args: Arguments to call. :param kwargs: Optional named arguments. :return: None.

registeredNames() → List.

Returns a list containing the names of all currently regisered ViewerProcesses. :return: List.

restoreSelectionAfterReload() → None.

Restores the viewer process selection after an OCIO or Nuke Config has been reloadedthis is normally called after nuke.ViewerProcess.storeSelectionBeforeReload():return: None.

storeSelectionBeforeReload() → None.

When the user reloads an OCIO or Nuke config the viewer process selection is stored in the the viewer process objectFollowing the reload you can call nuke.ViewerProcess.restoreSelectionAfterReload() which will then restore the selection instead of the default.:return: None.

unregister(name) → None.

Unregister a ViewerProcess. This is a class method. :param name: Menu name. :return: None.