Example #1
0
 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)
Example #2
0
 def from_yaml(cls, loader, node):
     if node.value == 'null':
         return None
     else:
         return meta.findNodeByUUID(node.value)