I'm attempting to bake a key per frame on a hierarchy in Maya 2017 using pymel. The process is lengthy (this was specifically requested) and involves,
- duplicating the hierarchy
- constraining duplicate to the original referenced hierarchy
- baking the duplicate
- deleting parentConstraints
When I reach the baking part I can't seem to bake a key per frame. I get sparse keyframes. It's important to note that if I do this step manually I do get the proper result (a keyframe per frame).
Here's the command being used:
pm.bakeResults(srcRoot, t=startEndRange, hierarchy='below', at=channels,
disableImplicitControl=True, preserveOutsideKeys=False, sparseAnimCurveBake=False,
removeBakedAttributeFromLayer=False, removeBakedAnimFromLayer=False, bakeOnOverrideLayer=False,
Also to note is that I'm duplicating a bind skeleton, which is being driven by a control rig - both included in the reference.
I'm relatively new to pymel. I thought sparseAnimCurveBake flag was meant for frame by frame baking...