Synopsis


listSelectSets()


This command returns a list of all SelectSet objects present in the scene.



Examples


This prints the name and contents for all select sets in the current scene:

from animBot import OpenAnimBot as OA

for selectSet in OA.listSelectSets():
    
    print("name:", selectSet.getName())
    print("contents:", selectSet.getContents())



This prints the name for all select sets in the scene that are blue:

from animBot import OpenAnimBot as OA
    
for selectSet in OA.listSelectSets():
        
    if selectSet.getColor() != OA.kBlue:
        continue
    
    print("name:", selectSet.getName())



This selects all select sets in the scene that are blue:

from animBot import OpenAnimBot as OA
    
for selectSet in OA.listSelectSets():
        
    if selectSet.getColor() != OA.kBlue:
        continue
    
    selectSet.selectContents()