Forum: Poser Python Scripting


Subject: Websockets and facial motion-capture

HartyBart opened this issue on Oct 18, 2021 ยท 14 posts


adp001 posted Mon, 18 October 2021 at 11:02 AM

Answers to your questions:

> 1 - would Poser be able to even support a live data-feed input from a websocket, if a simple Poser-friendly websocket was to be
> made available via a Python script?

Websocket is only the protocol to transfer some data. But something has to produce the data and Poser must process it.

So, yes, it can be done. And websocket is only one way to transfer the required data.

> 2- could Python then process the resulting data feed, by translating it in real-time into viewport animation of a Poser character's
> face? The ideal would be to get a live 15 FPS cartoon face in the viewport, using Poser's Comic Book Preview, rather than
> photoreal rendering.

Of course. But this is where the hard part begins :)

The transport is trivial. For Poser you need a function that opens a channel where Poser can receive something. And a function that either polls this channel constantly or something that is thread controlled.

And without a "return channel" this is just a gimmick.