# How to hide all control points of a curve

**URL:** <https://discourse.slicer.org/t/how-to-hide-all-control-points-of-a-curve/27295>\
**Category:** Development\
**Created:** [January 17, 2023, 12:30pm UTC](https://discourse.slicer.org/t/how-to-hide-all-control-points-of-a-curve/27295 "2023-01-17T12:30:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wrc](https://avatars.discourse-cdn.com/v4/letter/w/6de8d8/32.png) [@wrc](https://discourse.slicer.org/u/wrc)\
**Post date:** [January 17, 2023, 12:30pm UTC](https://discourse.slicer.org/t/how-to-hide-all-control-points-of-a-curve/27295/1 "2023-01-17T12:30:50Z")

</div>

Hello, I want to hide all control points and only show the curve. How to achieve that by the API from vtkMRMLMarkupsDisplayNode?

---

<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:** [January 17, 2023, 12:52pm UTC](https://discourse.slicer.org/t/how-to-hide-all-control-points-of-a-curve/27295/2 "2023-01-17T12:52:04Z")

</div>

You can increase LineThickness to maximum and decrease GlyphSize/Scale. Then you won’t see the control points because they will have the same size as the line. If you want to prevent interaction, you can also lock the curve. There are other ways but I think this is the simplest.

---

<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:** [January 17, 2023, 3:29pm UTC](https://discourse.slicer.org/t/how-to-hide-all-control-points-of-a-curve/27295/3 "2023-01-17T15:29:36Z")

</div>

Not from vtkMRMLMarkupsDisplayNode, but vtkMRMLMarkupsNode has the [SetNthControlPointVisibility](https://apidocs.slicer.org/master/classvtkMRMLMarkupsNode.html#a51b6b37d38a92df2ddd5027d60bc59b6) function.
