How to programmatically add the vtkSeedWidget or vtkSphereWidget

How to programmatically add the vtkSeedWidget or vtkSphereWidget,then execute widgetManager.enablePicking(), and you can drag the widget with the mouse

Thanks.

Isn’t placeWidget working ?

My requirement is for the program to automatically generate the vtkSeedWidget upon loading, rather than requiring a mouse click to do so

I made a PR to demonstrate how to programmatically place a seed widget:

It seems that I still can’t programmatically place a widget.

Indeed the branch was not merged and got outdated. I just rebased it and merged. Can you try again ?