It looks like you're using an ad blocker! I really need the income to keep this site running.
If you enjoy BlenderNation and you think it’s a valuable resource to the Blender community, please take a moment to read how you can support BlenderNation.

AsyncIO inside Blender


Andreas Klostermann demonstrates how to create threaded networking connectivity in Blender. My favorite feature: he's pulling BlenderNation headlines into Blender and shows them in 3D. I wouldn't mind having a fancy version of that as my startup .blend! %^) Anyone?

Andreas Klostermann writes:

Up to now, network programming in blender has been a nightmare and virtually absent. Python threading did not work reliably inside blender, and so any script running for extended periods of time would block the user interface. Any code running outside the main process would not have full or reliable access to the API.

The larger Python community solved this problem using asyncio. In fact, Guido van Rossum himself designed a standard event loop library for concurrency and asynchronous input/output. Codenamed Tulip, this library is already included in the standard library and current distributions of Blender.

For more details, please refer to the Github repository.

Leave A Reply

To add a profile picture to your message, register your email address with To protect your email address, create an account on BlenderNation and log in when posting a message.