Skip to content

Instantly share code, notes, and snippets.

View ehsanwwe's full-sized avatar
😁
3D / 2D developer

Ehsan Moradi ehsanwwe

😁
3D / 2D developer
View GitHub Profile
@Durman
Durman / Progress bar for blender.md
Created January 21, 2022 17:30
Examples of creating a progress bar in Blender

Showing progress bar in Blender

Main problem of showing progress bar in Blender UI is that while a script is running the UI is frozen. So the simplest (?) solution is to break execution whenever the progress status should be updated. For this you can use either timers or modal operators. The last one can't be switched on during all time of Blender execution and has some starting costs.

import bpy
from functools import partial