Package nuke :: Class ViewerProcess
[hide private]
[frames] | no frames]

Class ViewerProcess

object --+
         |
        nuke.ViewerProcess

ViewerProcess

Instance Methods [hide private]
 
node(...)
nuke.ViewerProcess.node(name, viewer) -> Node.
 
register(...)
nuke.ViewerProcess.register(name, call, args, kwargs) -> None.
 
registeredNames(...)
nuke.ViewerProcess.registeredNames() -> List.
 
restoreSelectionAfterReload(...)
nuke.ViewerProcess.restoreSelectionAfterReload() -> None.
 
storeSelectionBeforeReload(...)
nuke.ViewerProcess.storeSelectionBeforeReload() -> None.
 
unregister(...)
nuke.ViewerProcess.unregister(name) -> None.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

node(...)

 

nuke.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.

register(...)

 

nuke.ViewerProcess.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(...)

 

nuke.ViewerProcess.registeredNames() -> List. Returns a list containing the names of all currently regisered ViewerProcesses.

Returns:
List.

restoreSelectionAfterReload(...)

 

nuke.ViewerProcess.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(...)

 

nuke.ViewerProcess.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(...)

 

nuke.ViewerProcess.unregister(name) -> None. Unregister a ViewerProcess. This is a class method.

Parameters:
  • name - Menu name.
Returns:
None.