This script works in conjunction with Delicode NI Mate to live capture motion data into Maya. I developed this script as a means to elimate .bvh middleware, enabling live recording into Maya.
Left: Locators generated by NI Mate's plugin; Right: Live capture from NI Mate's external software
2022-01-07.16-52-20.mov
Here is the results of running the script: a skeleton that can be used for retargetting within Maya.
mocapScriptDemo.mov
There are two versions of this script:
- The Parent Constraint version, which constrains the joints to their respective locators
- The Parent Offset Matrix version, which uses the offset matrices from the locators and drives the locations of their respective joints and children.