# vtkMRMLMarkupsLineNode view in slices only if intersecting the slice plans

**URL:** <https://discourse.slicer.org/t/vtkmrmlmarkupslinenode-view-in-slices-only-if-intersecting-the-slice-plans/44389>\
**Category:** Development\
**Created:** [September 8, 2025, 2:56pm UTC](https://discourse.slicer.org/t/vtkmrmlmarkupslinenode-view-in-slices-only-if-intersecting-the-slice-plans/44389 "2025-09-08T14:56:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarafv](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sarafv/32/1809_2.png) [@sarafv](https://discourse.slicer.org/u/sarafv)\
**Post date:** [September 8, 2025, 2:56pm UTC](https://discourse.slicer.org/t/vtkmrmlmarkupslinenode-view-in-slices-only-if-intersecting-the-slice-plans/44389/1 "2025-09-08T14:56:47Z")

</div>

Hi!

There is a way to hide the control points of a vtkMRMLMarkupsLineNode in 2d views when the control points are not in the visible 2D Slices of Back/Foreground Volumes

thanks!

Sara

---

<div class="post-metadata">

**Author:** ![sarafv](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sarafv/32/1809_2.png) [@sarafv](https://discourse.slicer.org/u/sarafv)\
**Post date:** [September 9, 2025, 9:49am UTC](https://discourse.slicer.org/t/vtkmrmlmarkupslinenode-view-in-slices-only-if-intersecting-the-slice-plans/44389/2 "2025-09-09T09:49:27Z")

</div>

I tried to hide by tuning 2D Displays parameters on Markups Module. I think that the “projection visibility check button is not working as expected in 5.8 version.

I’ve just tried on 5.9 and it is working 😅

---

<div class="post-metadata">

**Author:** ![sarafv](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sarafv/32/1809_2.png) [@sarafv](https://discourse.slicer.org/u/sarafv)\
**Post date:** [September 9, 2025, 10:26am UTC](https://discourse.slicer.org/t/vtkmrmlmarkupslinenode-view-in-slices-only-if-intersecting-the-slice-plans/44389/3 "2025-09-09T10:26:21Z")

</div>

Same thing on scripting tests, on 5.9 displayNode.SetSliceProjection is working but not in 5.8 (on ubuntu22)

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [September 9, 2025, 11:22am UTC](https://discourse.slicer.org/t/vtkmrmlmarkupslinenode-view-in-slices-only-if-intersecting-the-slice-plans/44389/4 "2025-09-09T11:22:17Z")

</div>

Thank you for verifying that this works in the preview version! If there is any questions left about this let us know.

---

<div class="post-metadata">

**Author:** ![sarafv](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sarafv/32/1809_2.png) [@sarafv](https://discourse.slicer.org/u/sarafv)\
**Post date:** [September 9, 2025, 11:29am UTC](https://discourse.slicer.org/t/vtkmrmlmarkupslinenode-view-in-slices-only-if-intersecting-the-slice-plans/44389/5 "2025-09-09T11:29:45Z")

</div>

Hi Csaba,

Sorry for the mess. The problem is not the version sorry, I just posted a new topic. The proble apperars in reformat mode only !!!

I aks Andras to erase this topic

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [September 9, 2025, 11:32am UTC](https://discourse.slicer.org/t/vtkmrmlmarkupslinenode-view-in-slices-only-if-intersecting-the-slice-plans/44389/6 "2025-09-09T11:32:47Z")

</div>

> [@sarafv](#):
>
> I aks Andras to erase this topic

I think this is fine here, we usually do not completely erase anything from the forums. Let me just reference the follow-up ticket:

> [@Markups control Points 2D Views projections on Reformat Mode](https://discourse.slicer.org/t/markups-control-points-2d-views-projections-on-reformat-mode/44401):
>
> Hello, Following and correcting previous topic about hiding projections of control points, I’v juste realize that the problem with displayNode.SetSliceProjection happens only when 2D views are on Reformat Mode, the projection of all the control points are visibles and there is no way to hide them with displayNode.SetSliceProjection, whether in the 5.9 or 5.8 version Sara

Yes in this case it does seem like a bug.

---

<div class="post-metadata">

**Author:** ![sarafv](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sarafv/32/1809_2.png) [@sarafv](https://discourse.slicer.org/u/sarafv)\
**Post date:** [September 9, 2025, 11:39am UTC](https://discourse.slicer.org/t/vtkmrmlmarkupslinenode-view-in-slices-only-if-intersecting-the-slice-plans/44389/7 "2025-09-09T11:39:18Z")

</div>

Ok, because I’m upgrading some modules and this is a problem for me! 😅
