def onItemSelectionChanged(self): items = self.listWidget.selectedItems() nodes = [] for item in items: node = meta.findNodeByUUID(item.data(QtCore.Qt.UserRole)) if node: nodes.append(node) if nodes: pm.select(nodes)
def from_yaml(cls, loader, node): if node.value == 'null': return None else: return meta.findNodeByUUID(node.value)