nuke.ViewerProcess
- class nuke.ViewerProcess
Bases:
object
Methods
Returns a ViewerProcess node.
Returns a ViewerProcess node for Monitor Out.
Register a ViewerProcess.
Returns a list containing the names of all currently regisered ViewerProcesses.
Restores the viewer process selection after an OCIO or Nuke Config has been reloaded this is normally called after nuke.ViewerProcess.storeSelectionBeforeReload()
When the user reloads an OCIO or Nuke config the viewer process selection is stored in the the viewer process object Following the reload you can call nuke.ViewerProcess.restoreSelectionAfterReload() which will then restore the selection instead of the default.
Unregister a ViewerProcess.
- node(name, viewer) Node.
Returns a ViewerProcess node. Default is to return the current selected one. This is a class method.
- Parameters
name – Optional ViewerProcess name.
viewer – Optional viewer name.
- Returns
Node.
- nodeMonitorOut(name, viewer) Node.
Returns a ViewerProcess node for Monitor Out. If a viewer has not been specified, returns the current selected one. This is a class method.
- Parameters
name – Optional ViewerProcess name.
viewer – Optional viewer name.
- Returns
Node.
- register(name, call, args, kwargs) None.
Register a ViewerProcess. This is a class method.
- Parameters
name – Menu name.
call – Python callable. Must return a Node.
args – Arguments to call.
kwargs – Optional named arguments.
- Returns
None.
- registeredNames() List.
Returns a list containing the names of all currently regisered ViewerProcesses.
- Returns
List.
- restoreSelectionAfterReload() None.
Restores the viewer process selection after an OCIO or Nuke Config has been reloaded this is normally called after nuke.ViewerProcess.storeSelectionBeforeReload()
- Returns
None.
- storeSelectionBeforeReload() None.
When the user reloads an OCIO or Nuke config the viewer process selection is stored in the the viewer process object Following the reload you can call nuke.ViewerProcess.restoreSelectionAfterReload() which will then restore the selection instead of the default.
- Returns
None.
- unregister(name) None.
Unregister a ViewerProcess. This is a class method.
- Parameters
name – Menu name.
- Returns
None.