Convert a MotionClip back to skeleton

   1379   2   1
User Avatar
Member
49 posts
Joined: Nov. 2017
Offline
So my aim is to convert a MotionClip back to a skeleton, perform a mirror (or some other operation) and then convert it back to a MotionClip, but I've been getting strange results when using the MotionClip Evaluate node to convert my motion clip.

I've prepared a simple file using the zombie character to show what I mean. I unpack that character's motion and make it a motion clip. Then I use a MotionClip Evaluate node, I mirror the pose and put back into a motion clip which visually looks correct, but when I insert that motion clip back into the zombie via an Agent Clip node his motion isn't mirrored.

I've seen that I could instead use an Agent Unpack to unpack an agent's skeleton, perform a mirror operation, make a motion clip and insert that back into my agent via an Agent Clip node which does admittedly solve this particular problem, but it still leaves me with the question of how to properly convert a motion clip back to a skeleton, perform some operations on it and then make a motion clip? And what is wrong with my setup in the example file that I created?

Attachments:
BK_Aug21 Mirror_01.hiplc (440.4 KB)

User Avatar
Member
9384 posts
Joined: July 2007
Offline
seems like Agent Clip is using localtransform attribute from joints if exists and rig mirror pose mirrors just transform attribute

so you can either:
- uncheck Unpack Attributes on Motion Clip Evaluate or at least exclude localtransform
OR
- delete localtransform using Attribute Delete
OR
- recompute localtransform using Compute Transform SOP
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
49 posts
Joined: Nov. 2017
Offline
Ahh! That's great, thank you Tomas, really appreciate that.
  • Quick Links