def get_view_process_node(self):
    if nuke.selectedNodes():
        [n.setSelected(False) for n in nuke.selectedNodes()]
    ipn_orig = None
    for v in [n for n in nuke.allNodes() if ('Viewer' in n.Class())]:
        ip = v['input_process'].getValue()
        ipn = v['input_process_node'].getValue()
        if (('VIEWER_INPUT' not in ipn) and ip):
            ipn_orig = nuke.toNode(ipn)
            ipn_orig.setSelected(True)
    if ipn_orig:
        nuke.nodeCopy('%clipboard%')
        [n.setSelected(False) for n in nuke.selectedNodes()]
        nuke.nodePaste('%clipboard%')
        ipn = nuke.selectedNode()
        return ipn
def get_view_process_node(self):
    if nuke.selectedNodes():
        [n.setSelected(False) for n in nuke.selectedNodes()]
    ipn_orig = None
    for v in [n for n in nuke.allNodes() if ('Viewer' in n.Class())]:
        ip = v['input_process'].getValue()
        ipn = v['input_process_node'].getValue()
        if (('VIEWER_INPUT' not in ipn) and ip):
            ipn_orig = nuke.toNode(ipn)
            ipn_orig.setSelected(True)
    if ipn_orig:
        nuke.nodeCopy('%clipboard%')
        [n.setSelected(False) for n in nuke.selectedNodes()]
        nuke.nodePaste('%clipboard%')
        ipn = nuke.selectedNode()
        return ipn