Is there a way to use knife_project with headless mode?

I’m starting Blender with the --background flag, but knife_project doesn’t appear to work, and I’m not getting any errors. It does work when I run the script in the Scripting tab, so I’m wondering if there’s something else I’m missing.

you can’t knife project without a viewport camera, which you won’t have without a viewport. no viewport in headless mode.

you’re probably not getting an exception, but you’re probably getting a polling error when the operator tries to run when the correct context doesn’t exist.

1 Like

There are no errors in the output, polling or otherwise, but I believe the first half of your reply answers the question. Thanks.