Coder Social home page Coder Social logo

walkoncross / blender_bvh_addon_enhanced Goto Github PK

View Code? Open in Web Editor NEW
29.0 3.0 5.0 1.9 MB

Enhanced version of blender's bvh add-on with more settings supported. The bvh's rest pose should have the same handedness as the armature while could use a different up/forward definiton.

Python 100.00%
blender-addon bvh-files animation blender-python blender-plugin blender

blender_bvh_addon_enhanced's Introduction

Enhanced bvh add-on (importer/exporter) for blender

Author: [email protected]

github repo: https://github.com/walkoncross/blender_bvh_addon_enhanced

Refer to for more information: https://docs.blender.org/manual/en/2.92/addons/import_export/anim_bvh.html

Enhanced version of blender's bvh add-on with more settings supported.

The bvh's rest pose should have the same handedness as the armature while could use a different up/forward definiton

Enhanced bvh importer

New features:

  • Target: support to load .bvh data onto an existing armature
  • Translation: choose to load translation (a.k.a position) for all bones/only root bone/none from the MOTION part of .bvh file
  • Global Axis Conversion: whether to convert from bvh axis orientions into Blender's default axis orientions(Z-up/Y forward)
  • Skip frames: skip first #N frames inthe the MOTION part of .bvh file
  • Add rest pose: whether to add rest pose as the first frame in the animation curves.

bvh_importer_new_features

Enhanced bvh exporter

  • Forward and Up: customerize the output axis orientations
  • Add rest pose: whether to add rest pose as the first frame in the animation curves.

bvh_exporter_new_features

How to

Install

  1. download a release version .zip from: https://github.com/walkoncross/blender_bvh_addon_enhanced/raw/main/io_anim_bvh_enhanced.zip; (OR: git clone this repo and make a zip file (io_anim_bvh_enhanced.zip) from ./io_anim_bvh_enhanced);

  2. Blender -> Edit -> Perferences -> Add-ons -> Install, get the path of io_anim_bvh_enhanced.zip, install and enable the add-on

install_addon_1

install_addon_2

  1. After Installation:

enhanced_bvh_importer_menu

enhanced_bvh_exporter_menu

Load .bvh data onto an existing armature

  1. Select an existing armature object
  2. File -> Import -> Motion Capture (.bvh), enhanced
  3. Make settings
  4. Import BVH

load_onto_existing_armature

blender_bvh_addon_enhanced's People

Contributors

walkoncross avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

blender_bvh_addon_enhanced's Issues

Respect original bone name in BVH file

Here, spaces in the bone name are replaced with an underscore:

file_lines[lineIdx][1] = '_'.join(file_lines[lineIdx][1:])

However, this causes import errors on models with bone names that contain spaces (such as headphone 1) as this would build the bone map with headphone_1 as key thus throwing a KeyNotFound error next.

Is there a reason to use a underscore as the concatenator instead of a space?

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.