def ui_onCopyShortNameClicked(self): nameList = [ ni.shortName for ni in self.getSelectedNodeInfos() if ni.shortName ] nameString = '' for name in nameList: nameString += name + '\r\n' pyperclip.setcb(nameString)
def putCopyListToClipboard(self, l): pyperclip.setcb('\n'.join(l))
def ui_onCopyShortNameClicked(self): nameList = [ni.shortName for ni in self.getSelectedNodeInfos() if ni.shortName] nameString = '' for name in nameList: nameString += name + '\r\n' pyperclip.setcb(nameString)