Hello, I am looking to make a script that will allow me to click within the 3D view on to a segmentation node and get the specific segment under the mouse cursor. Before I start trying to do this the hard way, I wanted to ask if there are any known modules / extensions that have this capability. Drawing segmentations in the 3D view will raycast onto the segmentation surface from the 3D camera projection. Is there existing API to raycast and return the segment within the segmentation node?
My goal here is we have many misclassified segments that need corrections for boundaries with adjacent segments. These are easily corrected in a single stroke by using the paint tool with the ‘editable area’ set to INSIDE the misclassified segment. It’s easy to identify misclassified boundaries in the 3D view, but more time consuming to find the same structure in the orthographic view, hover the mouse in the orthographic view to get the name in the DataProbe, then find & select the name within the segmentation editor. With 100+ segments, I’m looking to speed this up by making a script to select the segment in the editor and set the target ‘editable area’ by ray-casting in the 3D view.