Code Monkey home page Code Monkey logo

community-plugins-socket's People

Contributors

black-punkduck avatar jarred-sumner avatar joepal1976 avatar palmer-jc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

community-plugins-socket's Issues

List of available commands

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.

`AttributeError: 'MHApplication' object has no attribute 'mhapi'` prevents plugin load.

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

Crash of second MakeHuman instance if port is blocked.

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.

Special characters like '\' are not escaped in JsonCall, resulting in invalid JSON

JsonCall.serialize produces invalid JSON. Specifically, reverse slashes in strings \ are not escaped.

Reproducing:

  • install MakeHuman on Windows
  • call getBodyMaterialInfo to receive material data
  • see that slashes in "materialFile": "E:\Apps\makehuman-1.2.0\makehuman\data\skins\young_caucasian_male\young_caucasian_male2.mhmat", are not escaped

This 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("\\\\\"", "\\\"");

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.