MHAPI revisited

Works in progress and technical screen shots.

Moderator: joepal

MHAPI revisited

Postby joepal » Thu Jun 09, 2016 7:06 am

I don't know if any of you remember the MHAPI project that was discussed quite a while ago. The idea was to make MH coding more approachable by providing a coherent and accessible API instead of requiring everyone to dig into the internals the first they do.

Well, the old attempt didn't amount to much, so I started from scratch again now and re-implemented it as a plugin which registers a global.

The results so far can be seen here: https://github.com/makehumancommunity/c ... /README.md

I started small this time and will keep adding calls as and when it seems someone needs them or I'm in the mood.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 3943
Joined: Wed Jun 04, 2008 11:20 am

Re: MHAPI revisited

Postby badwolf » Fri Jun 10, 2016 2:52 am

can i put a corresponding SET version of getUserDataPath(subpath = "") in the list of requested functions??


i could see a Portable Version having a plugin that

1 sets the user data to either a secondary data folder (say udata) or the "system" data folder
2 copies/merges the user data folder over (if needed)
badwolf
 
Posts: 272
Joined: Fri Feb 06, 2015 12:41 am

Re: MHAPI revisited

Postby joepal » Fri Jun 10, 2016 8:43 am

That's a good idea. But it wouldn't help to just do it in MHAPI, it would still require the corresponding change in lib/getpath.py unless something really obscure is done.

With obscure I mean overwriting module member function pointers from outside code, which I'm not even sure is possible.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 3943
Joined: Wed Jun 04, 2008 11:20 am


Return to WIP (Work In Progress)

Who is online

Users browsing this forum: No registered users and 1 guest