Is there any code to control 'specify geometry in Segment editor?

I made a shortcut to go Segment Editor module and automatically load source volume and add segmentation and segment.
In this situation, I also want to control “specify geometry” button which is next to source volume.
I want to choose ROI that I made previously and set spacing as 0.15mm.
But I never could find the function codes for controlling ‘specify geometry’ :frowning:

I also saw the script of Segment Editor module but I can’t find the ‘specify geometry’ part…

hi, not an expert here, but this test seems to have examples that could help:

Also using ROIs as inputs