vault backup: 2023-08-16 17:00:21

This commit is contained in:
BlueRose 2023-08-16 17:00:21 +08:00
parent b464052bac
commit 71d7ae36c9

View File

@ -21,6 +21,18 @@ https://github.com/KoltesDigital/websocket-server-for-blender
## Pyside6实现
TODO:添加多线程,防止退出。
```python
server = QWebSocketServer()
thread = QtCore.QThread()
server.moveTOThread(thread)
server.finished.connect(thread.quit)
thread.started.connect(model.func_to_run)
thread.finished.connect(fun_to_run_after_thread_finished)
thread.start()
```
```python
# blender --background test.blend --python mytest.py -- example args 123
import sys