# Rename vtkMRMLMarkupsFiducialNode

**URL:** https://discourse.slicer.org/t/rename-vtkmrmlmarkupsfiducialnode/29085
**Category:** Development
**Created:** [April 24, 2023, 8:32am UTC](https://discourse.slicer.org/t/rename-vtkmrmlmarkupsfiducialnode/29085 "2023-04-24T08:32:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dsa934](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dsa934/32/17907_2.png) [@dsa934](https://discourse.slicer.org/u/dsa934)
#### Post date: [April 24, 2023, 8:32am UTC](https://discourse.slicer.org/t/rename-vtkmrmlmarkupsfiducialnode/29085/1 "2023-04-24T08:32:04Z")

</div>

Operating system: window 10  
Slicer version: 5.2.1

In the case of ‘vtkCurve’ and ‘vtkClosedCurve’ nodes, changing their ‘ **name** ’ is reflected on the screen in real time. However, in the case of 'vtkMRMLMarkupsFiducialNode, even if the ‘ **name** ’ is changed, it is not reflected in real time, and it is reflected in real time only when the **name of ’ Control point’** in a is changed.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/d/dd8aebc279c25d331258170f0c042eaed4569a79.png)

When changing the name of ‘vtkMRMLMarkupsFiducialNode’ that exists in the ‘Node’ area of the UI, how is it reflected in the corresponding VIEW in real time?

---

<div class="post-metadata">

### Author: ![dsa934](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dsa934/32/17907_2.png) [@dsa934](https://discourse.slicer.org/u/dsa934)
#### Post date: [April 25, 2023, 5:01am UTC](https://discourse.slicer.org/t/rename-vtkmrmlmarkupsfiducialnode/29085/2 "2023-04-25T05:01:45Z")

</div>

```auto
SetNodes = slicer.util.getNodesByClass('vtkMRMLMarkupsFiducialNode')
    length = len(SetNodes)
    for idx in range(length):
        SetNodes[idx].SetNthControlPointLabel(0, SetNodes[idx].GetName() )

```

Aha, it works just by coding like this

---

<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: [April 25, 2023, 12:19pm UTC](https://discourse.slicer.org/t/rename-vtkmrmlmarkupsfiducialnode/29085/3 "2023-04-25T12:19:49Z")

</div>

At far as I remember this issue was fixed in the current Slicer version (Slicer-5.2.2). Always use at least the latest Slicer Stable Release. If you find any problems in the latest version then you can report it here.
