Possible to include rig position/orientation in SavePosePreset?

Issue #674 resolved
Rakete created an issue

I still use the retargeting so that I can have MHX->DAZ armature animations which I want to export back to DAZ from Blender. One problem that I have currently is that I can not map the MHX master bone to anything in the DAZ armature. So my poses/animations always end up at the origin. The closest equivalent in the DAZ armature to the MHX master bone is the hip I think, but I use that for the MHX hip, which gives me the ability to use IK for stuff like kneeling down, which I would like to keep.

So I’ve been looking at how DAZ stores poses, and it does save the figure translation/orientation in pose presets as well, under urls like this:

{
    "url" : "name://@selection:?translation/x/value",
    "keys" : [ [ 0, 66.79132 ] ]
},

so I was thinking that I should be able to add this to the code in animation.py so that not only the bones translation/orientation is saved, but the whole rig translation/orientation as well.

Comments (5)

  1. Thomas Larsson repo owner

    Your patch has been added. I’m not so good at git and didn’t manage to merge it with master, so I copied the changes manually instead. Added support for scale as well.

  2. Rakete reporter

    Thanks. Normally you’d review the PR and ask the author to make adjustments, then once those are done there should be a merge button somewhere in the Bitbucket Ui to automatically merge the PR. But of course this works just as well, so I guess I close the PR and this issue now.

  3. Log in to comment