def nodesFromClipboard(self): nuke.tprint(str(self.par)) text = QApplication.clipboard().text() nodes = [] if text: for l in text.split('\n'): res = re.findall(r'name \w+$', l) if res: name = res[0].split()[1] nodes.append(name) for n in nodes: self.par.tab.addToCurrent('nuke.toNode("%s")\n' % n)
def nodesFromClipboard(self): # nuke.tprint(str(self.par)) text = QApplication.clipboard().text() nodes = [] if text: for l in text.split('\n'): res = re.findall(r'name \w+$', l) if res: name = res[0].split()[1] nodes.append(name) for n in nodes: self.par.tab.addToCurrent('nuke.toNode("%s")\n' % n)