• Stars
    star
    130
  • Rank 275,909 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created about 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Transfer your blend shapes between meshes with the same topology.

maya-transfer-blend-shape

Retarget your blend shapes between meshes with the same topology.

Installation

  • Extract the content of the .rar file anywhere on disk.
  • Drag the transfer-blend-shape.mel file in Maya to permanently install the script.

Usage

A button on the MiscTools shelf will be created that will allow easy access to the ui, this way the user doesn't need to worry about any of the code. If user wishes to not use the shelf button the following commands can be used. The transfer will only work if at least one vertex has no delta, these fixed vertices are used to transfer the solution to the correct position in object space, the threshold can be increased to make sure vertices are linked.

A virtual mesh can be used to add additional triangles to the solve, it is important that all vertices of the virtual mesh can be mapped to vertices on the source mesh, this can be done by snapping them.

The number of iterations determine the amount of times the laplacian smoothing matrix is applied to the deformed vertices. This smoothing matrix is calculated using weights determined by area difference on a per-vertex basis.

Colour sets can be created to visualize the deformed vertices and the laplacian smoothing weights.

Command line:

import transfer_blend_shape
transfer = transfer_blend_shape.Transfer(source_mesh, target_mesh, virtual_mesh=None, iterations=3, threshold=0.001)
transfer.execute_from_mesh(mesh, name)
transfer.execute_from_blend_shape()

Display UI:

import transfer_blend_shape.gui
transfer_blend_shape.gui.show()

Note

This tool requires numpy and scipy to be installed to your environment. Using linux or Maya 2022+ on windows this can be done via a simple pip install. For older windows versions a custom version will have to be compiled against the correct VS version.

Example images are generated using the MetaHuman exports for the source/target base and source jaw open shape. Target jaw open is generated using the tool.

More Repositories

1

video2mocap

Convert a video file to animated humanIK skeletons for Maya.
Python
167
star
2

maya-keyframe-reduction

Keyframe Reduction for Maya using least-squares method.
Python
90
star
3

maya-dem-bones

DemBones python bindings for use in Maya.
Mathematica
74
star
4

unity-another-auto-rigger

Unity scripts for the Another Auto Rigger system.
C#
71
star
5

maya-skinning-tools

Skinning tools for maya.
Python
68
star
6

maya-timeline-marker

Create coloured markers on top of Maya's native timeline. Comments can be added to each marker that appear as tool tips.
Python
62
star
7

maya-module-installer

Module template for easy drag-and-drop installation using provided mel script.
Python
51
star
8

maya-spline-ik

Create a Spline IK setup on a curve. The setup features variable stretch and squash, variable rotation and sliding on curve.
Python
46
star
9

maya-command-search

Read all buttons in Maya's native menu and make them searchable and executable.
Python
33
star
10

maya-anchor-transform

Anchor transforms to world or object space in Maya.
Python
25
star
11

maya-module-manager

Module manager for Maya.
Python
25
star
12

maya-quality-assurance

Quality assurance framework for Maya.
Python
24
star
13

maya-reorder-attributes

Reorder attributes in Maya.
Python
24
star
14

maya-channel-box-plus

Extend the maya channel box with searchability and colour
Python
16
star
15

img2ply

Convert an image sequence to a PLY point cloud.
Python
14
star
16

maya-surface-attract

Maya surface attract deformer
C++
13
star
17

maya-weighted-blend-matrix

Maya weighted blend matrix node
C++
13
star
18

maya-raycast

Maya raycast node
C++
10
star
19

maya-curve-attract

Maya curve attract deformer
C++
10
star
20

maya-orm

Django inspired framework for Maya
Python
9
star
21

maya-bake-instancer

Bake an instancer node to individual animated pieces of geometry.
Python
6
star
22

robertjoosten.github.io

Portfolio website.
SCSS
2
star
23

maya-unittest

Unittest subset for specific use in Maya.
Python
2
star