- marked as enhancement
- marked as minor
Possible to include rig position/orientation in SavePosePreset?
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)
-
reporter -
reporter Ok, I managed to create the change I was talking about, I made a pull request here: https://bitbucket.org/Diffeomorphic/import_daz/pull-requests/3/make-saveposepreset-save-rig-rotation
I did not spend a lot of time testing this, or making this particularly beautiful. For now this is just enough to solve my problem.
-
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.
-
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.
-
reporter - changed status to resolved
Merged
- Log in to comment