def updateAssetsLayout(self): sel = self.getSelItem(self.assetsTsl) assets = [x.nodeName() for x in tagging.ls(self.tag.get())] self.assetsTsl.removeAll() self.assetsTsl.extend(assets) if sel is not None and sel in assets: self.assetsTsl.setSelectItem(sel)
def nodes(self, tag): return tagging.ls(tag, tr=1)
def exportAll(self): self.exportManager.exportAll(self.tag.get(), self.moveToOrigin.get()) numNodes = len(tagging.ls(self.tag.get(), tr=1)) pm.mel.eval('print "Finished exporting {0} nodes."'.format(numNodes))