# How to display all points in a centerline curve at the same time in sagittal view? And how to display them?

**URL:** https://discourse.slicer.org/t/how-to-display-all-points-in-a-centerline-curve-at-the-same-time-in-sagittal-view-and-how-to-display-them/16293
**Category:** Development
**Tags:** python
**Created:** [March 1, 2021, 5:55pm UTC](https://discourse.slicer.org/t/how-to-display-all-points-in-a-centerline-curve-at-the-same-time-in-sagittal-view-and-how-to-display-them/16293 "2021-03-01T17:55:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![akshay\_pillai](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akshay_pillai/32/8301_2.png) [@akshay\_pillai](https://discourse.slicer.org/u/akshay_pillai)
#### Post date: [March 1, 2021, 5:55pm UTC](https://discourse.slicer.org/t/how-to-display-all-points-in-a-centerline-curve-at-the-same-time-in-sagittal-view-and-how-to-display-them/16293/1 "2021-03-01T17:55:06Z")

</div>

Operating system: windows 10  
This is a 2 part question:

1. First, I want to display the points in a centerline curve at all times programmatically. So I have a centerline curve and it has n number of control points. I want to display all n control points on the centerline curve in the sagittal view. I can manually click on view and jump to control points using the markups module but I want to display them automatically (or display control points of curve at all times)through code.

2. Second, I am using the endoscopy module to go through using the centerline curve. Is there any way I can change the color of displayed centerline curve control points as I pass it in the endoscopy view on the 2d views.

---

<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 1, 2021, 6:04pm UTC](https://discourse.slicer.org/t/how-to-display-all-points-in-a-centerline-curve-at-the-same-time-in-sagittal-view-and-how-to-display-them/16293/2 "2021-03-01T18:04:45Z")

</div>

> [@akshay\_pillai](#):
>
> So I have a centerline curve and it has n number of control points. I want to display all n control points on the centerline curve in the sagittal view

You can make all control points appear in a slice view by enabling Markups module / Display / 2D Display / Projection visibility. If you want to show them in a selected view only then specify the view node (Display / Advanced / View).

> [@akshay\_pillai](#):
>
> Second, I am using the endoscopy module to go through using the centerline curve. Is there any way I can change the color of displayed centerline curve control points as I pass it in the endoscopy view on the 2d views.

You can change the curve color using Markups module / Display / Advanced.

All these properties are also accessible in Python, via the display node of the curve node. You can get the display node by calling `curveNode->GetDisplayNode()`.
