def on_selectSrc( self, *a ): src = self.getSelectedSrc() if src: #if the object doesnt' exist in teh scene - try to find it src = findItem( src ) if src is not None: cmd.select( src )
def on_selectSrc(self, *a): src = self.getSelectedSrc() if src: #if the object doesnt' exist in teh scene - try to find it src = findItem(src) if src is not None: cmd.select(src)
def on_selectTgt( self, *a ): tgts = self.getSelectedTgts() if tgts: existingTgts = [] for t in tgts: t = findItem( t ) if t is not None: existingTgts.append( t ) if existingTgts: cmd.select( existingTgts )
def on_selectTgt(self, *a): tgts = self.getSelectedTgts() if tgts: existingTgts = [] for t in tgts: t = findItem(t) if t is not None: existingTgts.append(t) if existingTgts: cmd.select(existingTgts)