Louis Vass

LouisVass

About Me

専門知識
Freelancer

Connect

LOCATION
London, United Kingdom
ウェブサイト

Houdini Engine

ADVANCED
プロシージャルワークフロー  | Environments  | Python
INTERMEDIATE
キャラクタ & アニメーション  | 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? 2024年6月21日4:52

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] 2023年12月21日5:52

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