if SObjectList: #Ok, il y a des objet référençant la mainShape
for SObject in SObjectList: # Recherche du type de chacun des objets
SFatherComponent = SObject.GetFatherComponent()
if SObjectList: #Ok, il y a des objet référençant la mainShape
for SObject in SObjectList: # Recherche du type de chacun des objets
SFatherComponent = SObject.GetFatherComponent()