Answered

Interface access current edit bone data

makaolachsiungca 6 months ago updated by Peter - Soxware Developer 6 months ago 1

I wrote a ruler&protractor script try to catch bone's transform variable, but skeleton in scene did not actually move, seems play graph only. 
it'll be great to have a window access editing frame data

UMotion Version:
1.23
Unity Version:
2020.2.1f1

Answer

Answer
Answered

Hi,

thank you very much for sharing your idea. I really appreciate that.

When you've assigned a character to the Pose Editor, any changes you do externally (e.g. via a custom script) to any of the bones/transforms of said character are going to be overwritten by UMotion every time UMotion updates the pose. The only way to change the pose of your character is via UMotion's callback mechanism. The callback is called every time UMotion finished updating the pose, thus allows your script to add modifications on top of it. For more information, please check the manual at "Pose Editor / Options" headline "Extending UMotion".

UMotion also has a dedicated UMotion API that gives scripting access to some features of UMotion. Unfortunately, the bone data is currently not exposed via this API. I've took a note to expose this in the future, but can't promise anything as of now.


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


Best regards,
Peter

Answer
Answered

Hi,

thank you very much for sharing your idea. I really appreciate that.

When you've assigned a character to the Pose Editor, any changes you do externally (e.g. via a custom script) to any of the bones/transforms of said character are going to be overwritten by UMotion every time UMotion updates the pose. The only way to change the pose of your character is via UMotion's callback mechanism. The callback is called every time UMotion finished updating the pose, thus allows your script to add modifications on top of it. For more information, please check the manual at "Pose Editor / Options" headline "Extending UMotion".

UMotion also has a dedicated UMotion API that gives scripting access to some features of UMotion. Unfortunately, the bone data is currently not exposed via this API. I've took a note to expose this in the future, but can't promise anything as of now.


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


Best regards,
Peter