makehumancommunity / community-plugins-socket Goto Github PK
View Code? Open in Web Editor NEWSocket server for makehuman
Socket server for makehuman
Hi, is there a list of available commands that I can run using genericCommand.py? Is it the same list as the commands from MHAPI? If so, is there a way to use the scripting commands available in the makehuman gui itself? Thanks.
When running against the makehuman
master
branch, I get the following error on the logs,
Traceback (most recent call last):
File "./core/mhmain.py", line 580, in loadPlugin
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/gabriel/los-fuegos/makehuman/makehuman/plugins/8_server_socket/__init__.py", line 34, in <module>
mhapi = gui3d.app.mhapi
AttributeError: 'MHApplication' object has no attribute 'mhapi'
Not sure how MH versions, but I'm running at this commit,
origin [email protected]:makehumancommunity/makehuman.git
b0ca7c88 (HEAD -> master, origin/master, origin/HEAD) Remove blendertools and docs from ppa build
A second instance of MakeHuman will crash during start up sequence when the socket plugin fails to connect to the port used by the first instance of MakeHuman.
Tested with Python3.9 (custom build) on Ubuntu 20.04.2LTS.
JsonCall
.serialize
produces invalid JSON. Specifically, reverse slashes in strings \
are not escaped.
Reproducing:
getBodyMaterialInfo
to receive material data"materialFile": "E:\Apps\makehuman-1.2.0\makehuman\data\skins\young_caucasian_male\young_caucasian_male2.mhmat",
are not escapedThis prevents working with MakeHuman socket using libraries like GSON.
I don't know whether the fix will break Blender plugin compatibility, so won't do a pull request.
Ugly workaround for clients until fix (or if fix is not possible):
// s is MakeHuman response
s = s.replace("\\", "\\\\").replace("\\\\\"", "\\\"");
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.