So I have a little script that selects all visible vertices by going to the camera view, entering edit mode and then calling bpy.ops.view3d.select_box. I now want to move to headless mode to run my script on a server, but from what I gathered, it's not possible to use select_box in headless mode.

Are there any workarounds for this? I couldn't find anything useful, so I'm afraid it will be a rather time-intensive and ugly solution...

PS: A "headless" tag might be useful

  • $\begingroup$ blender.stackexchange.com/questions/64318/… $\endgroup$
    – X Y
    Commented May 30, 2022 at 8:05
  • $\begingroup$ @XY Yeah I am doing pretty much that, but the script fails due to a segmentation fault when run in headless mode $\endgroup$ Commented May 30, 2022 at 8:25
  • 1
    $\begingroup$ Maybe bmesh method work, blender.stackexchange.com/questions/40823/… $\endgroup$
    – X Y
    Commented May 30, 2022 at 8:30
  • $\begingroup$ This did the trick! Needed some time to integrate it with the other stuff in my script, but it works now! I'll post a minimal script example as the answer later on - thanks! $\endgroup$ Commented May 30, 2022 at 11:14


You must log in to answer this question.

Browse other questions tagged .