Display a ClosedCurveNode with changing parameters after a button press event

I am creating a module where i would like to display a closed curve after an event. The closed curve will change after each event (button / addition of fiducial point) dependent on the new coordinates defined.

How can I create the closed curve node and display it with a set of changing coordinates in a module, I am able to do this manually via python interactor but struggling to import this into my module?

Thanks in advance

Do you use markups closed curve or you are observing a markups fiducial list and update the curve whenever the points are moved?

I am using a markups closed curve, but have it working now thank you :slight_smile: I just need to include observer events to ensure the curve is deleted when deleted manually on Slicer GUI.

1 Like