# CreateDefaultVolumeRenderingNodes always return None

**URL:** <https://discourse.slicer.org/t/createdefaultvolumerenderingnodes-always-return-none/24932>\
**Category:** Support\
**Created:** [August 26, 2022, 7:07am UTC](https://discourse.slicer.org/t/createdefaultvolumerenderingnodes-always-return-none/24932 "2022-08-26T07:07:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ada](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ada/32/15944_2.png) [@ada](https://discourse.slicer.org/u/ada)\
**Post date:** [August 26, 2022, 7:07am UTC](https://discourse.slicer.org/t/createdefaultvolumerenderingnodes-always-return-none/24932/1 "2022-08-26T07:07:03Z")

</div>

Hello community!

I was using a custom script to display 3D dicom stacks but since I updated 3DSlicer version (from 4.11.0 to 5.0.3) my script is not working anymore.  
I am no more able to get the ROI node from a volume using the ‘CreateDefaultVolumeRenderingNodes’ function (always return None) as show below :  
On 4.11.0 version :  
ID: vtkMRMLGPURayCastVolumeRenderingDisplayNode1  
ClassName: vtkMRMLGPURayCastVolumeRenderingDisplayNode  
Name: VolumeRendering  
[…]  
Node references:  
roi [ROINodeID]: vtkMRMLAnnotationROINode1  
shaderProperty [shaderPropertyNodeId]: (none)  
volumeProperty [volumePropertyNodeID]: vtkMRMLVolumePropertyNode1

On 5.0.3 version :  
ID: vtkMRMLGPURayCastVolumeRenderingDisplayNode1  
ClassName: vtkMRMLGPURayCastVolumeRenderingDisplayNode  
[…]  
Node references:  
roi [ROINodeID]: (none)  
shaderProperty [shaderPropertyNodeId]: (none)  
volumeProperty [volumePropertyNodeID]: vtkMRMLVolumePropertyNode1

Do you know can I get back the roi Node ID ?  
Are there lots of incompatibilities between consecutives 3DSlicer software versions ?  
Thank you so much for your help

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 27, 2022, 10:49pm UTC](https://discourse.slicer.org/t/createdefaultvolumerenderingnodes-always-return-none/24932/2 "2022-08-27T22:49:35Z")

</div>

`CreateDefaultVolumeRenderingNodes` unnecessarily polluted the scene with ROI node even though the user did not need cropping. In Slicer-5.x we fixed the issue by not creating the ROI nodes automatically, but you can `CreateROINode` if you need an ROI node.
