6 def getChildrenInStudy(obj):
8 Given an object published in SALOME study (for instance a GEOM object), retreive its children.
9 return a dictionary [name] --> object
11 SO = salome.myStudy.FindObjectIOR(salome.myStudy.ConvertObjectToIOR(obj))
12 childIterator = salome.myStudy.NewChildIterator(SO)
14 while childIterator.More():
15 childItem = childIterator.Value()
16 print("item", childItem)
17 itemName = childItem.GetName()
18 itemID = childItem.GetID()
19 itemObj = salome.IDToObject(str(itemID))
20 children[itemName] = itemObj