# 'SegmentEditorEffect' object has no attribute 'segmentMarkupNode'

**URL:** <https://discourse.slicer.org/t/segmenteditoreffect-object-has-no-attribute-segmentmarkupnode/13440>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [September 11, 2020, 2:25pm UTC](https://discourse.slicer.org/t/segmenteditoreffect-object-has-no-attribute-segmentmarkupnode/13440 "2020-09-11T14:25:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anand\_Mulay](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anand_mulay/32/6850_2.png) [@Anand\_Mulay](https://discourse.slicer.org/u/Anand_Mulay)\
**Post date:** [September 11, 2020, 2:25pm UTC](https://discourse.slicer.org/t/segmenteditoreffect-object-has-no-attribute-segmentmarkupnode/13440/1 "2020-09-11T14:25:52Z")

</div>

I’m trying to use Nvidia Ai using the sample script ([https://gist.github.com/lassoan/ef30bc27a22a648ead7f82243f5cc7d5](https://gist.github.com/lassoan/ef30bc27a22a648ead7f82243f5cc7d5))  
First I got an internal error for the study which is running successfully in the editor but not with the script, so I updated the slicer to the latest nightly build, then I got this error.

```
slicer.util.updateMarkupsControlPointsFromArray(effect.self().segmentMarkupNode, inputPoints)

AttributeError: 'SegmentEditorEffect' object has no attribute 'segmentMarkupNode'

```

I tried to uninstall and install the MarkupTomodel extension.  
any changes in SegmentEditorEffect class for the latest nightly build??

---

<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:** [September 11, 2020, 8:14pm UTC](https://discourse.slicer.org/t/segmenteditoreffect-object-has-no-attribute-segmentmarkupnode/13440/2 "2020-09-11T20:14:53Z")

</div>

For some reason, NVidia developers renamed `segmentMarkupNode` to `annotationFiducialNode`. Make the change in the script accordingly and let me know if it fixed the issue.

---

<div class="post-metadata">

**Author:** ![Anand\_Mulay](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anand_mulay/32/6850_2.png) [@Anand\_Mulay](https://discourse.slicer.org/u/Anand_Mulay)\
**Post date:** [September 14, 2020, 8:25am UTC](https://discourse.slicer.org/t/segmenteditoreffect-object-has-no-attribute-segmentmarkupnode/13440/3 "2020-09-14T08:25:55Z")

</div>

Thanks, that error is gone now.  
But that unexpected error window came up, ☹  
let me share the log file and traceback window error message with you,

> **[Untitled Post](https://textuploader.com/1p063)**
>
> \[DEBUG\]\[Qt\] 14.09.2020 13:32:27 \[\] (unknown:0) - Session start time .......: 2020-09-14 13:32:27
> \[DEBUG\]\[Qt\] 14.09.20...

  

> **[Untitled Post](https://textuploader.com/1p06b)**
>
> Traceback (most recent call last):
> File "C:/Users/anand.mulay/AppData/Roaming/NA-MIC/Extensions-29363/NvidiaAI...

the same study works in the editor though.

---

<div class="post-metadata">

**Author:** ![Anand\_Mulay](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anand_mulay/32/6850_2.png) [@Anand\_Mulay](https://discourse.slicer.org/u/Anand_Mulay)\
**Post date:** [September 17, 2020, 8:54am UTC](https://discourse.slicer.org/t/segmenteditoreffect-object-has-no-attribute-segmentmarkupnode/13440/4 "2020-09-17T08:54:53Z")

</div>

hello @lassoan,

Am i missing somthing here? ☹  
i’m trying but not geting the result , same error message all time.

---

<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:** [September 18, 2020, 12:03am UTC](https://discourse.slicer.org/t/segmenteditoreffect-object-has-no-attribute-segmentmarkupnode/13440/5 "2020-09-18T00:03:54Z")

</div>

NVidia develepers changed the module so that input points are now cleared when a model is selected the first time, so now you need to select the model before you set the points. I’ve updated the example gist accordingly.
