Answered

Create new humanoid animation programmatically from existing data

Andrew111111 11 months ago updated by Peter - Soxware Developer 11 months ago 1

Hi Peter,

I am a bit confused with a task I have now and I wonder if i can achieve it through umotion: I have a load of skeleton data in text files. I can read it all in c# in unity but I am stuck on how to convert that into keyframes in your animation system. Is there a way I can set up keyframes programmatically?

Thank you!

UMotion Version:
Unity Version:

Answer

Answer
Answered

Hi Andrew,
thank you very much for your support request.

Have you already checked the UMotion API: https://www.soxware.com/umotion-manual/UMotionAPI.html. The method TrySetFkLocalRotation(Transform transform, Quaternion localRotation, string undoMessage, bool createKey) might be exactly what you're looking for.


Please let me know in case you have any follow-up questions.

Best regards,
Peter

Answer
Answered

Hi Andrew,
thank you very much for your support request.

Have you already checked the UMotion API: https://www.soxware.com/umotion-manual/UMotionAPI.html. The method TrySetFkLocalRotation(Transform transform, Quaternion localRotation, string undoMessage, bool createKey) might be exactly what you're looking for.


Please let me know in case you have any follow-up questions.

Best regards,
Peter