parameters: (self)
return_statement: return sets
docstring: for x in all_sets:
              # cannot use this because sets do not usually have this at the
              # beginning
              #elif not self.attr_exists(x, "tacticNodeData"):
              #    continue
             
              sets.append(x)
docstring_summary: for x in all_sets:
              # cannot use this because sets do not usually have this at the
              # beginning
              #elif not self.attr_exists(x, "tacticNodeData"):
              #    continue
             
              sets.append(x)
docstring_tokens: for x in all_sets : # cannot use this because sets do not usually have this at the # beginning #elif not self . attr_exists ( x tacticNodeData ) : # continue sets . append ( x )
function: def get_sets(self):
          #all_sets = mel('listSets -allSets')
          # change to this.  The above does not give the full namespace name
          all_sets = set(mel('ls -type objectSet'))
          delight_set = set() 
          try:
              delight_list = mel('ls -type delightShapeSet')
              if delight_list:
                  delight_set = set(delight_list)
          except Exception as e:
              pass
  
          ignore_set = set(['defaultLightSet', 'defaultObjectSet']).union(delight_set)
          #ignore_set = set(['defaultLightSet', 'defaultObjectSet'])
          render_set = set()
          deformer_set = set()
  
  
          # shadingEngine is strangely a subset of -type objectSet in Maya 7 at least
          render_set_list = mel('ls -type shadingEngine')
          deformer_set_list = mel('listSets -type 2')
          
          if render_set_list:
              render_set = set(render_set_list)
          if deformer_set_list:
              deformer_set = set(deformer_set_list)   
          all_sets = all_sets - render_set - deformer_set - ignore_set
         
          # remove any set with the suffix of the deformer_set_list
        
          
          sets = []
          if deformer_set_list:
              regex = '|'.join(['skinCluster\d*Set','cluster\d*Set', 'tweakSet\d*'] )
              deformer_pat = re.compile(r'(%s)$' %regex)
              sets = [ x for x in all_sets if not deformer_pat.search(x) ] 
          else:
              sets = list(all_sets)
         
          '''
          
          for x in all_sets:
              # cannot use this because sets do not usually have this at the
              # beginning
              #elif not self.attr_exists(x, "tacticNodeData"):
              #    continue
             
              sets.append(x)
          '''
              
          return sets
function_tokens: def get_sets ( self ) : #all_sets = mel('listSets -allSets') # change to this.  The above does not give the full namespace name all_sets = set ( mel ( 'ls -type objectSet' ) ) delight_set = set ( ) try : delight_list = mel ( 'ls -type delightShapeSet' ) if delight_list : delight_set = set ( delight_list ) except Exception as e : pass ignore_set = set ( [ 'defaultLightSet' , 'defaultObjectSet' ] ) . union ( delight_set ) #ignore_set = set(['defaultLightSet', 'defaultObjectSet']) render_set = set ( ) deformer_set = set ( ) # shadingEngine is strangely a subset of -type objectSet in Maya 7 at least render_set_list = mel ( 'ls -type shadingEngine' ) deformer_set_list = mel ( 'listSets -type 2' ) if render_set_list : render_set = set ( render_set_list ) if deformer_set_list : deformer_set = set ( deformer_set_list ) all_sets = all_sets - render_set - deformer_set - ignore_set # remove any set with the suffix of the deformer_set_list sets = [ ] if deformer_set_list : regex = '|' . join ( [ 'skinCluster\d*Set' , 'cluster\d*Set' , 'tweakSet\d*' ] ) deformer_pat = re . compile ( r'(%s)$' % regex ) sets = [ x for x in all_sets if not deformer_pat . search ( x ) ] else : sets = list ( all_sets ) return sets