# How to set/select Fudicial Points one by one

**URL:** <https://discourse.slicer.org/t/how-to-set-select-fudicial-points-one-by-one/9447>\
**Category:** Support\
**Tags:** extensions-manager\
**Created:** [December 9, 2019, 3:12pm UTC](https://discourse.slicer.org/t/how-to-set-select-fudicial-points-one-by-one/9447 "2019-12-09T15:12:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aping](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Aping](https://discourse.slicer.org/u/Aping)\
**Post date:** [December 9, 2019, 3:12pm UTC](https://discourse.slicer.org/t/how-to-set-select-fudicial-points-one-by-one/9447/1 "2019-12-09T15:12:00Z")

</div>

Hi slicer experts,

There are 100 coordinates in a file named 1,2,3,…100. I want to make one point’s color is different from others. For example, point 1st to 5th is red, and the 6th is yellow, the left (7th-100th) is invisible.  
I load the coordinates into Slicer, firstly.

```auto
slicer.util.loadMarkupsFiducialList('fiducial_coords.fcsv')
mDisplayNode = getNode('vtkMRMLMarkupsFiducialNode1').GetDisplayNode()

```

Now, I want to change the point color one by one, but it will change the color of all points by using:

```auto
mDisplayNode.SetSelectedColor(0,1,0)

```

Does anyone know how to select one point and set the corresponding property?

Thanks is advance.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [December 9, 2019, 3:31pm UTC](https://discourse.slicer.org/t/how-to-set-select-fudicial-points-one-by-one/9447/2 "2019-12-09T15:31:22Z")

</div>

Within the markup list you can set each fiducial selected or not and that will change between two colors: `f.SetNthFiducialSelected(0, False)`

---

<div class="post-metadata">

**Author:** ![Aping](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Aping](https://discourse.slicer.org/u/Aping)\
**Post date:** [December 9, 2019, 3:39pm UTC](https://discourse.slicer.org/t/how-to-set-select-fudicial-points-one-by-one/9447/3 "2019-12-09T15:39:48Z")

</div>

Thanks Pieper. Yes , it works.  
Thanks again.

---

<div class="post-metadata">

**Author:** ![Aping](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Aping](https://discourse.slicer.org/u/Aping)\
**Post date:** [December 9, 2019, 4:33pm UTC](https://discourse.slicer.org/t/how-to-set-select-fudicial-points-one-by-one/9447/4 "2019-12-09T16:33:48Z")

</div>

Hello, Pieper,  
Do you know how to change the size of the selected fiducial?  
I use the following function, but it will change all fiducial points in the list. I want to adjust size of the selected point only.

```auto
fiducialDisplayNode.SetGlyphScale(2.5)

```

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [December 9, 2019, 4:35pm UTC](https://discourse.slicer.org/t/how-to-set-select-fudicial-points-one-by-one/9447/5 "2019-12-09T16:35:37Z")

</div>

Currently it is not possible to set different scale or color options for fiducials in a single fiducial list. If you need to do that, you will have to break apart your list. (i.e., clone your existing one, or create a new empty list, and copy/paste from the original).

---

<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:** [December 9, 2019, 5:12pm UTC](https://discourse.slicer.org/t/how-to-set-select-fudicial-points-one-by-one/9447/6 "2019-12-09T17:12:52Z")

</div>

You can also create a model node with arbitrarily scaled and colored spheres, using [vtkGlyph3D](https://vtk.org/doc/nightly/html/classvtkGlyph3D.html) filter. It probably takes just a couple of lines of Python code to create a model from a point list.

If you have a script that does what you need, you can create a small Python-scripted module from it by following [developer tutorials](https://www.slicer.org/wiki/Documentation/Nightly/Training#Tutorials_for_software_developers).

---

<div class="post-metadata">

**Author:** ![Aping](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Aping](https://discourse.slicer.org/u/Aping)\
**Post date:** [December 9, 2019, 10:24pm UTC](https://discourse.slicer.org/t/how-to-set-select-fudicial-points-one-by-one/9447/7 "2019-12-09T22:24:07Z")

</div>

Thanks for all your suggestions and help. It is very useful.  
Best wishes,
