# How to start to edit a markups control point position interactively with code

**URL:** https://discourse.slicer.org/t/how-to-start-to-edit-a-markups-control-point-position-interactively-with-code/39661
**Category:** Support
**Created:** [October 11, 2024, 5:33pm UTC](https://discourse.slicer.org/t/how-to-start-to-edit-a-markups-control-point-position-interactively-with-code/39661 "2024-10-11T17:33:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mau\_igna\_06](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mau_igna_06/32/9056_2.png) [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)
#### Post date: [October 11, 2024, 5:33pm UTC](https://discourse.slicer.org/t/how-to-start-to-edit-a-markups-control-point-position-interactively-with-code/39661/1 "2024-10-11T17:33:10Z")

</div>

Hi

My requirement is to have 3 points with labels “A”, “B” and “C”; and have a GUI with 3 checkable buttons with texts “A”, “B” and “C”. When a button is checked then interactive mode should allow to edit point position with the corresponding label (or add it if it did not exist yet).  
Also, the number of control points and their labels are fixed.

For example when button “B” is pressed, placement mode should start to modify the control point position with label “B”. If the button “B” is unchecked maybe the control point should be “unset” or “reset” or “missing”, I’m not sure about this.

How do I implement the workflow mentioned in the example?

Hope you can help,  
Mauro

---

<div class="post-metadata">

### Author: ![mau\_igna\_06](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mau_igna_06/32/9056_2.png) [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)
#### Post date: [October 11, 2024, 8:31pm UTC](https://discourse.slicer.org/t/how-to-start-to-edit-a-markups-control-point-position-interactively-with-code/39661/2 "2024-10-11T20:31:43Z")

</div>

I don’t have 3 classes like in the example, I have around 30.  
I think, there is no documentation in the use of “unset”, “reset” or “missing” for control points, or markups edition by code.  
Anyway, I will just create 30 markupFiducialNodes with one control point each for my use case

---

<div class="post-metadata">

### Author: ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)
#### Post date: [October 11, 2024, 9:52pm UTC](https://discourse.slicer.org/t/how-to-start-to-edit-a-markups-control-point-position-interactively-with-code/39661/3 "2024-10-11T21:52:41Z")

</div>

Have you looked at making a markups template? [Markups — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/user_guide/modules/markups.html#creating-template-landmarks)  
It would provide some of the features you are looking for.
