# ProbeVolumeWithModel produces wrong output in code

**URL:** <https://discourse.slicer.org/t/probevolumewithmodel-produces-wrong-output-in-code/22485>\
**Category:** Support\
**Created:** [March 13, 2022, 4:36pm UTC](https://discourse.slicer.org/t/probevolumewithmodel-produces-wrong-output-in-code/22485 "2022-03-13T16:36:23Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [March 14, 2022, 12:55pm UTC](https://discourse.slicer.org/t/probevolumewithmodel-produces-wrong-output-in-code/22485/6 "2022-03-14T12:55:02Z")

</div>

Image slices are displayed in 3D views as model nodes, therefore the first 3 model nodes are typically these slice plane nodes.

@pieper what do you think about adding a flag to GetFirstNodeByName method to include/exclude hidden nodes and by default make hidden nodes excluded? This would change the behavior of the method by default, but since this is a high-level convenience function, the expected behavior is probably to not consider hidden nodes.

---

_[View the full topic](https://discourse.slicer.org/t/probevolumewithmodel-produces-wrong-output-in-code/22485)._
