# How to display markups node only in a specific slice view?

**URL:** <https://discourse.slicer.org/t/how-to-display-markups-node-only-in-a-specific-slice-view/36298>\
**Category:** Development\
**Created:** [May 21, 2024, 2:20pm UTC](https://discourse.slicer.org/t/how-to-display-markups-node-only-in-a-specific-slice-view/36298 "2024-05-21T14:20:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![park](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/park/32/5717_2.png) [@park](https://discourse.slicer.org/u/park)\
**Post date:** [May 21, 2024, 2:20pm UTC](https://discourse.slicer.org/t/how-to-display-markups-node-only-in-a-specific-slice-view/36298/1 "2024-05-21T14:20:47Z")

</div>

Hi all

I would like to make marksupNode and marksupCurveNode visible only in the red slice. (I prefer them to remain invisible in the green and yellow slices.)

 ![스크린샷 2024-05-21 오후 11.20.16](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/8/a8b62d738886d197fee071cb433041905a2a2269.gif)

Could you please provide an example for achieving this?

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [May 21, 2024, 2:31pm UTC](https://discourse.slicer.org/t/how-to-display-markups-node-only-in-a-specific-slice-view/36298/2 "2024-05-21T14:31:46Z")

</div>

You can do it with something like this:

```python
markupsNode.GetDisplayNode().SetViewNodeIDs(["vtkMRMLSliceNodeRed"])

```

You just need to specify the ids for all of the views in which it should be visible.

[https://apidocs.slicer.org/main/classvtkMRMLDisplayNode.html#a8fd9a8d62109f08b3720edc8e174a546](https://apidocs.slicer.org/main/classvtkMRMLDisplayNode.html#a8fd9a8d62109f08b3720edc8e174a546)
