Select vtkMRMLModelNode on mouse click


I am trying to implement a mouse interaction wherein the user clicks on a model from the 3D viewer and the model which was clicked is made available so that it can be modified in some way (such as colour change, etc.). I was able to find a similar example here from the VTK examples page but have not been able to reproduce the behaviour with vtkMRMLModelNodes within Slicer.

Any help is appreciated.

1 Like

We plan to add a feature like this within a couple of months, but until then you can use something like what is implemented here.