Fast and Deep Deformation Approximations
import sys
sys.path.insert(0, r"PATH/OF/YOUR/CODE")
from maya import cmds, OpenMaya
from fdda.maya import bind, train, generate_pose
from fdda.training.PyTorch.settings import Settings
selected = cmds.ls(selection=True, long=True)
if len(selected) != 2:
raise RuntimeError("Selected Source and Destination !")
source, destination = selected
settings = Settings.default()
settings.split = 0.1
settings.units = 256
settings.device = Settings.kGpu
output_path = train(source, destination, settings, build_pose=True, num_pose=40)
bind(destination, output_path)
CylinderTest.mp4
Models made by Tristan Cordeboeuf at The Beast Makers.