I want to fully automate the workflow: use an existing MarkupsCurveNode as the centerline, generate the tube segment, and “import” it, without any manual interaction.
Could someone please advise:
What is the correct parameter name for passing a centerline to the Draw Tube effect?
How can I simulate clicking the Import button programmatically in Python?
Why does setting "Interpolation" update the GUI but "Radius" does not, and how should I set the radius properly so the interface updates as well?
In this fuction (from SegmentEditorDrawTube/SegmentEditorDrawTubeLib/SegmentEditorEffect.py) the number of points in the surface to do the tube faces is set to 8 and this can not be modified. Why? If I set this to 32 for example the generated segment is much smoother than with 8.
In my case, I work with a big cylinder and using 8 points produce a very narrow output.
One option is that someone (or someone with the help of an LLM) adds a parameter in the effect for the resolution of the tube.
The other option is that you open the python file in your installed extension and simply change this number. It is a hack, but since this code is Python and it is interpreted, it will work after restarting Slicer.