Baking tools without freeze-up

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By i.i

I’m using a script that processes a bunch of objects, so it can freeze-up the editor for a while until it’s finished. Is there a way to write a tool of this kind that interacts with the editor in a kinder way?

Even if it’s kinda hacky, I’d rather have a way I can run it as a thread alongside the editor rather than take all resources until it’s finished.

I’ve tried logging the process with a print statement, but it only prints after the tool is completely finished.

I don’t think so. If it freezes, it is just this occupied. You can only optimize code itself.
Hint : printis highly costly command. If You print with tool for debug purposes, remove the prints and experience much smoother work.

Inces | 2022-09-12 15:04

dang, alright.

i.i | 2022-09-14 00:17