Ejemplo n.º 1
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 )
Ejemplo n.º 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)
Ejemplo n.º 3
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 )
Ejemplo n.º 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)