Basically I have a big subject hierarchy (several folders), and inside each I have nodes (volumes, segmentations, transformations). I want to create a table for instance and place it in the same location of the generating data, or clone one of the volumes, make some calculation and save as a new volume in the same hierarchy.
When I do this
volumeNode = slicer.vtkSlicerVolumesLogic().CloneVolume(slicer.mrmlScene, fatherNode, nodename, True) util.updateVolumeFromArray(volumeNode, new_arr) volumeNode.Modified()
the created volume is outside of the hierarchy so I have to move it manually. Is there a way to tell the new volume to be placed where the father is located??