Hi there!
I’m trying to find how can I with python change transform hierarchy of the scene, and all I was able to find is only how to change subject hierarchy:
sceneItemID = shn.GetSceneItemID()
shn = slicer.vtkMRMLSubjectHierarchyNode.GetSubjectHierarchyNode(slicer.mrmlScene)
subjectItemID = shn.GetItemChildWithName(sceneItemID, ‘volume3-TrackerToProbe’)
subjectItemID2 = shn.GetItemChildWithName(sceneItemID, ‘NeedleModel_1’)
shn.SetItemParent(subjectItemID,subjectItemID2)
Can someone please guide me how to change transform hierarchy nodes? Many thanks!