How to add some holes by script?

When I am splitting the skin, I want to add some holes on the surface of the skin model. This can be achieved using the eraser tool. Currently, I have placed some points on the surface of the skin model, and I want to write a script that obtains the RAS coordinates of each point and then iteratively creates holes using the eraser tool. How can I accomplish this? I am able to obtain the current segmentation node and markups node."

You can add a small sphere-shaped segment at each point as shown in this example. You can then use Logical operators effect to subtract these sphere segments from the skull cap segment.

1 Like