-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connecting socket using only python for bulk processing of animations #5
Comments
If it is saying "Waiting for data..." it is connected, but no data is being send to this socket.
This is a limitation of Blender. I also noticed I sometimes have to hover over it for Blender to update it.
I looked for how to simulate UI interaction with the addon's panel through python, but could not find anything useful.
I don't know how your .bat file looks like, but renaming is probably not necessary.
You can check all the available commands with:
Probably you want to be using Hope this will bring you further in getting it all to work! |
Did you try the |
I have now; I didn't realize Unless I specify a subscriber port, it does not accept any data: But if I give it the subscriber port that process_facstoblend publishes to, it receives the data and gives output. |
Thank you for trying this out.
That's correct. This module can work as a tester for publishing and receiving messages, but for that it needs to know which subscriber or publisher port.
Okay, this is weird. Can you tell me which port you used for Can you start Blender with a terminal? On which OS are you? The terminal will show what data Blender receives. If there is not data here as well, the add-on is not receiving the data. If we do see data, then there is a problem using that data to animate a character. |
Hi, The port is 5572.
So I guess the add-on is not receiving the data. Thanks! Hope this is any help! |
Just to make sure, when you tried the To make sure, this error:
appears directly when you press the "connect" button? Not when you do something else like stopping the connection? If it directly appears, then this error is indeed with the add-on. I don't know how to solve this just from this error message, so I will need to be trying some stuff. It may take some time before I have time to look into this. |
Yes. If run it with --sub_port 5550 nothing happens when I send data to it.
No, the error does not appear when I press the button in the add-on's interface.
Ok |
Hello Numes,
Hope you are well!
I am setting up a workflow for creating offline animations using FACSvatar in bulk. I am using the FACSvatar-Blender addon. As part of this process, I try connect the socket from within Blender using bpy.ops.socket.connect_subscriber(). But somehow this does not actually connect the socket. It shows below message in the python console when connecting:
Info: Connecting ZeroMQ socket...
Info: Sub connected to: tcp://127.0.0.1:5572
Waiting for data...
{'FINISHED'}
And when disconnecting:
Nothing yet...
Info: Subscriber socket closed
{'FINISHED'}
But I don't get a message in the info editor 'sub connected to....' or 'subscriber socket closed' the way I do when I manually click 'connect socket' and 'disconnect socket'. Also, the UI interface of the add-on's panel does not change either, until I hover the mouse pointer over the panel. But when I run facsvatar, there is no data transfer to the model.
So I wonder whether you have any ideas on how to make this work.
I looked for how to simulate UI interaction with the addon's panel through python, but could not find anything useful.
By the way, the main idea of the bulk process is like this:
Loop from within blender python script:
The text was updated successfully, but these errors were encountered: