GithubHelp home page GithubHelp logo

landiaokafeiyan / community-plugins-mhapi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from makehumancommunity/community-plugins-mhapi

0.0 2.0 0.0 59 KB

The MHAPI library is a hard dependency for most community plugins

Python 99.96% Makefile 0.04%

community-plugins-mhapi's Introduction

MHAPI

MHAPI is a set of convenience calls intented to help you get access to things which might be difficult to find in the code otherwise. The main purpose is to serve as a base library for writing plugins for MakeHuman.

Installation and usage

If you place 1_mhapi in the plugins directory, it will self-register so that app.mhapi becomes available. Then (in a plugin or whatever it is you are working with) you can make a call to one of MHAPI's functions. For example:

from core import G
someDir = G.app.mhapi.locations.getUserDataDir()

This would store the location of the "data" directory located amongst the user's makehuman files, i.e ~/makehuman/v1/data on a unixoid system or MY DOCUMENTS\makehuman\v1\data on windows.

API reference

In the reference, "G.app.mhapi.NAMESPACE" has been excluded. So the "getHuman()" call found on the "internals" page here is actuall called "G.app.mhapi.internals.getHuman()".

  • assets: These are calls related to reading, parsing and manipulating assets.
  • internals: These are calls which you would normally not need to make. They give you low-level access to internal MakeHuman objects.
  • locations: Gives you information about file and directory locations.
  • mesh: Operations on and info about the mesh as such (ie direct access to vertices, edges and faces)
  • modifiers: Gives you control and information about modifiers and targets.
  • skeleton: Operations concerning aspects of skeleton, such as rig, pose, expression and similar.
  • ui: Operations for constructing and manipulating the UI
  • version: Information about hg and the current makehuman version.
  • viewport: Operations for manipulating the viewport and the camera

community-plugins-mhapi's People

Contributors

joepal1976 avatar

Watchers

 avatar  avatar

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.