Giter Club home page Giter Club logo

rigify_deformbones's Introduction

Rigify into Unity Mecanim

Blender python script for Rigify rig, which remove deformation from DEF-xxx bones and add deformation to ORG-xxx bones. This allows the Rigify rig to be imported into Unity and be able to use it with Mecanim humanoid setup.


Rigify_script.py

This script contains only the code to change DEF-xxx bones into ORG-xxx bones. You have to run it manualy.

Rigify4Mecanim.py

This script is addon. It creates a buttons in generated rig from Rigify addon. You can find those buttons at the bottom of Data/Armature tab.

There is button for converting the Rigify rig into Unity Mecanim ready rig. And also a button to convert it back to Rigify rig.

There is one more button for exporting the final rig and mesh into fbx file. You have to specify (or select) path and file name (with *.fbx extension) and it will take the rig and mesh (which is child of the rig... if it is not you have to shift+select the mesh manually) and creates an fbx file with only the deformation bones (so no unnecessary bones are exported and the rig/hierarchy is clean in unity).
This export uses "apply_unit_scale=False" option, so the final scale in Unity should be 1.

There is a checkbox for the experimental feature !Apply Transform! (from fbx exporter) which you can deselect if it's causing problems.

Installation:

  • Open File -> User Preferences -> Addons -> Instal from File... -> choose the downloaded script and install it
  • You can find the Addon under Rigging category, there should be "Rigify to Unity" addon

rigify_deformbones's People

Contributors

trynyty avatar

Stargazers

Baris avatar

Watchers

Baris 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.