Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How wait until addon is finished #24

Closed
ilkarataev opened this issue Jan 10, 2021 · 1 comment
Closed

How wait until addon is finished #24

ilkarataev opened this issue Jan 10, 2021 · 1 comment

Comments

@ilkarataev
Copy link

ilkarataev commented Jan 10, 2021

Hi, i have simple script to regenerate with new audio files, i want render all in backgroun but when i run bpy.ops.object.rhubarb_lipsync() blender closed but addon still work. If you can help me i will be very apretiate.

render lips start
render lips finish
{ "type": "progress", "value": 0.00, "log": { "level": "Trace", "message": "Progress: 0%" } }
Writing userprefs: 'C:\Users\root\AppData\Roaming\Blender Foundation\Blender\2.91\config\userpref.blend' ok
{ "type": "progress", "value": 0.01, "log": { "level": "Trace", "message": "Progress: 1%" } }
{ "type": "progress", "value": 0.02, "log": { "level": "Trace", "message": "Progress: 2%" } }
{ "type": "progress", "value": 0.03, "log": { "level": "Trace", "message": "Progress: 3%" } }
{ "type": "progress", "value": 0.04, "log": { "level": "Trace", "message": "Progress: 4%" } }
Blender quit
{ "type": "progress", "value": 0.05, "log": { "level": "Trace", "message": "Progress: 5%" } }
{ "type": "progress", "value": 0.06, "log": { "level": "Trace", "message": "Progress: 6%" } } (edited)

@scaredyfish
Copy link
Owner

The operator returns "RUNNING_MODAL" when it starts, and then returns "FINISHED" when it's finished, but I'm not sure how to access that from another script.

I found this answer on blender.stackexchange which may help: https://blender.stackexchange.com/questions/143088/subscribe-to-finished-event-of-modal-operator-and-get-result-of-the-operator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants