Releases: p4vv37/blender_command_port
Releases · p4vv37/blender_command_port
Fixed module import error
What's Changed
- Fixed import module error
- Make pydevd_pycharm optional with warning by @Radivarig in #16
- Update API usage, fixes issue #18 by @OliverMead in #20
New Contributors
- @Radivarig made their first contribution in #16
- @OliverMead made their first contribution in #20
Full Changelog: 1.2.0...2.0.1
Support for new Blender releases
- Merged pull request #20 from masscollaborationlabs
- Minor fixes
Many improvements and fixes
1.1.1
1.1.0
1.0.1-Blender-2.80
Improved naming
1.0.0-Blender-2.80
Versioon 1.0.0 updated for Python 2.80+
1.0.0 - Basic working addon
Blender Command Port
Command Port addon for Blender.
How to use
Installing
Open User Preferences and click Install from File under Add-ons. Then navigate to the downloaded zip archive of this plugin and select it.
Starting the port
Command port can be configured and started from a Blender Command Port section of "Data" panel.
Basic usage
Command should be sent to command port as a text. It can be also done sent from Python:
import socket
def send_command(command):
clientsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
clientsocket.connect(('localhost', 5000))
clientsocket.sendall(command.encode())
while True:
res = clientsocket.recv(4096)
if not res:
break
print(res.decode())
clientsocket.close()
send_command("""
j = 0
for i in range(10):
print(j)
j+=i*2
j
""")
Another way is to use execute_file_in_blender.py script to create a run configuration in PyCharm that executes a file in Blender. Path to a file must be passed as a first script parameter, port need to be passed as a second one.
Authors
- Paweł Kowalski - pkowalski.com
License
This project is licensed under the MIT License