# How to update markupsCurve info when it terminated right-click end?

**URL:** <https://discourse.slicer.org/t/how-to-update-markupscurve-info-when-it-terminated-right-click-end/36423>\
**Category:** Development\
**Created:** [May 27, 2024, 7:28pm UTC](https://discourse.slicer.org/t/how-to-update-markupscurve-info-when-it-terminated-right-click-end/36423 "2024-05-27T19:28:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![park](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/park/32/5717_2.png) [@park](https://discourse.slicer.org/u/park)\
**Post date:** [May 27, 2024, 7:28pm UTC](https://discourse.slicer.org/t/how-to-update-markupscurve-info-when-it-terminated-right-click-end/36423/1 "2024-05-27T19:28:50Z")

</div>

Hi all,

I am using the PointModifiedEvent to update curve information when drawing a curve.

When I end the curve drawing interaction with a right-click, I noticed that information from undefined parts remains.

To address this, I tried using the PointEndInteractionEvent, but I found that it is not called when ending the curve drawing with a right-click.

What can I do to solve this issue?

(I want to update only the information defined up to the last point when ending the curve drawing with a right-click

---

<div class="post-metadata">

**Author:** ![park](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/park/32/5717_2.png) [@park](https://discourse.slicer.org/u/park)\
**Post date:** [May 28, 2024, 1:24am UTC](https://discourse.slicer.org/t/how-to-update-markupscurve-info-when-it-terminated-right-click-end/36423/2 "2024-05-28T01:24:33Z")

</div>

I found solution about this, through simply added ‘vtk.vtkCommand.ModifiedEvent’

`self.addObserver(self.node, vtk.vtkCommand.ModifiedEvent, self.function)`
