Louis Vass

LouisVass

About Me

EXPERTISE
Freelancer

Connect

LOCATION
London, United Kingdom
WEBSITE

Houdini Skills

ADVANCED
Procedural Modeling  | Environments  | Python
INTERMEDIATE
Character Rigging  | Muscles  | Solaris  | PDG

Availability

I am available for Contract Work

Recent Forum Posts

The proper way of doing asyncio in Houdini 20's python node? June 21, 2024, 4:52 a.m.

Forgive me if this doesn't immediately work as im typing on my phone from memory.

But i believe i got around this by running in a seperate thread while using:

asyncio.run_coroutine_threadsafe(async_function,event_loop)

I'm sure this is the code i used within a dataclass for handling asynchronous websocket communication, making sure to run the new thread with `asyncio.run_coroutine_threadsafe()`, did the job, but I'll confirm later.

def connect(self, server):
	server = 'localhost:8980'
        loop = asyncio.new_event_loop() 
        if not loop.is_running():
            threading.Thread(target=loop.run_forever, daemon=True).start()
        asyncio.run_coroutine_threadsafe(connect_async(server), loop)

async def connect_async(self, server):

WIP | PlasticityBridge fo Houdini [Houdini Utility] Dec. 21, 2023, 5:52 a.m.

nice going!

what issues have you encountered running this in H 20?

ive been working on the same thing, started in 19.5 and now in 20