I’m looking for a way to create a custom event handler that waits for messages that are sent by another tool via ZeroMQ. These messages contain data to control the creation of components like curves and rectangles.
Is there a way to do so? I thought of creating a thread that waits for the messages to arrive and this delegates then the UI thread to draw the objects.
Currently it gets stuck during creation of the ZContext and I don’t know why… I’ll try to use NetMQ and hope this works here.
My first plugin version just implements a command which has to be called and then waits (or would wait, if it won’t get stuck…) for arriving messages, but it would be nice, to have a thread that does the job and waits for incoming messages.
Ah yeah and the purpose of my plugin is to create curves and stuff in other tools like Illustrator and this shows up in Rhino. Currently it’s just a tryout for further implementations.