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 )
Example #2
0
 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 )
Example #4
0
    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)