Giter Site home page Giter Site logo

mhr's Introduction

mhr: An R package to work with MakeHuman files

Installation

install.packages('devtools')
devtools::install_github('d-bohn/mhr')

Rationale

MakeHuman is a wonderful, free, open source, and user-friendly 3D model generator for human-like avatars. It is often used in conjuction with other 3D rendering and manipulation software for a complete end-to-end 3D modelling solution. However, despite MakeHuman’s user-friendly approach, there is no command line interface, nor internal scripting. From a programatic standpoint, this make it particularly hard, for example, to batch process and manipulate files. Theoretically this can be done by adding a “plugin” written in python to the user’s installation of MakeHuman, but this has a number of drawbacks.

This package provides some simple functions to work with MakeHuman files. In particular, it helps with batch processing of models.

Getting started

Funcutions are provided (currently) to:

  1. Read in a file
mhm_file <- system.file('random_female.mhm', package = 'mhr')

mhm <- read_mhm(mhm_file)

This reads in a file to memory, and creates an object of class . MakeHuman model files are simple text files, so each file is parsed and saved to a list object to be futher manipulated.

  1. Randomize the 247 modifiers
mhm_rand <- mhm_rand_modifiers(mhm,
                           sym = TRUE,
                           mod_limits = c(-0.6,1),
                           gender_limits = c(0,1),
                           breasts_limits = c('rand'),
                           age_limits = c(.363,1))
  1. Write out a file
write_mhm(mhm_rand, 'makehuman_random.mhm')

Planned Features

  • Manipulating camera angle in a user-friendly manner

  • More detailed controller over how the modifiers are randomized

  • Manipulating modifiers individually by name

  • Converting files to files

  • Manipulating files in a similar manner to files

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.