Answered

Using Layers

hugs 5 years ago updated by Peter - Soxware Developer 5 years ago 2

I am using the layers functionality in the Clip Editor to create variations of a single base animation. My base animation clip has 5 layers on it that modify the movement of some bones to add variety to the original motion. I would like to be able to Mute and un-Mute layers from my script.

My current workflow is to duplicate the current clip (with all the layers), then mute the specific layers differently on the different duplicate clips, then export them to create 5 modified animations. However, if I need to modify the base animation clip I have to delete all the duplicate clips, then re-duplicate them from the base clip, then mute the specific layers differently, then re-export them as separate animations.

Is there a way to mute and un-mute layers from script? If not is there a less manual workflow for creating many animations?

Thank you for the help!

UMotion Version:
V1.20
Unity Version:
2019.3.0f6

Answer

Answer
Answered

Hi,
thank you very much for your feature request.

Currently the UMotion API doesn't provide access to the layers and their properties. I have taken a note to consider adding this in a future update.


I would say for the moment, the best manual approach is to duplicate the animation (one per modifying layer) and if you really need to change the base animation you would copy all keys of the modified base animation and then go through each duplication and replace the base layer keys their. Considering that modifying the base animation would probably not happen too often, this shouldn't take too much time.


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


Best regards,
Peter

GOOD, I'M SATISFIED

Thank you for the quick response! Looking forward to this feature.

Satisfaction mark by hugs 5 years ago
Answer
Answered

Hi,
thank you very much for your feature request.

Currently the UMotion API doesn't provide access to the layers and their properties. I have taken a note to consider adding this in a future update.


I would say for the moment, the best manual approach is to duplicate the animation (one per modifying layer) and if you really need to change the base animation you would copy all keys of the modified base animation and then go through each duplication and replace the base layer keys their. Considering that modifying the base animation would probably not happen too often, this shouldn't take too much time.


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


Best regards,
Peter

Hi,

thanks for your patience. I just implemented this feature in UMotion V1.21. Its probably going to take a few days until the update is reviewed and released by the asset store vetting team.

Best regards,
Peter