Activity
Mon
Wed
Fri
Sun
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
What is this?
Less
More

Memberships

CG Python Academy

Public โ€ข 24 โ€ข Free

1 contribution to CG Python Academy
how to make code sleep?
I am trying to write a code that select openings and boundries on a face separetly, but firstly I want to see what I am selecting with code, so I tried ' time.sleep() ' which is freezes blender somehow, then I found this blender link, but ' bpy.app.timers.register() ' solution is requires function that creates confusion and complexity, my main problem is I can't figure how to sleep my code in nested way, I need to select an edge then sleep some seconds to see, then deselect that edge and then sleep to see, then select next edge and then sleep to see and so on
1
12
New comment 5d ago
2 likes โ€ข 7d
I believe you should have a look at a modal operator. Check out the template inside blender. Than combine it with that which others wrote
1 like โ€ข 7d
@Victor Stepanov shouldn't this a model operator. Your code never stops the timer. Thus it will run indefinitely if I'm correct
1-1 of 1
Schroef X
1
2points to level up
@schroef-x-8448
...

Active 13h ago
Joined Nov 8, 2024
powered by