I’m trying to get the current volume rendered in the RYG views (from a Dicom).
On the screen, i have 2 volume:
For now, i already got all the vtkMRMLScalarVolumeNode in a VtkCollection, but i cannot find a way to get witch one is visible on the RYG.
Since we cannot set visible multiple volumes, i try a basic solution:
#currentNode is a vtkMRMLScalarVolumeNode currentNode.GetScalarVolumeDisplayNode().GetDisplayableNode().GetDisplayVisibility()
I expected this to return “1” for the volume rendered in the scene, 0 for all others, but it always return 1.
Does anyone have a solution ?