Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

bake mecanim animation: Convert mecanim animation clip to non-mecanim animation via script.

Discussion in 'Animation' started by neginfinity, Dec 9, 2018.

  1. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,554
    I'd like to do a fairly weird thing:

    Basically, what I'd like to do is to convert mecanim-animation curves to non-mecanim curves. In a script.

    Meaning, given a mecanim animation clip, convert it to a non-mecanim one through a script for a given chracter/skeleton. This would be done in editor mode and should be done without user interaction.

    Has anyone ever attempted something like that? Basically, I'm unsure if mecanim is supposed to even allow something like that, or if it is meant to work as a myserious black box of wonders.

    Thoughts? @Mecanim-Dev ?
     
  2. neoshaman

    neoshaman

    Joined:
    Feb 11, 2011
    Posts:
    6,492
    I have seen that being made in many asset on the store, I know skele does it, I know there is more doing it.
     
  3. Mecanim-Dev

    Mecanim-Dev

    Joined:
    Nov 26, 2012
    Posts:
    1,675
  4. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,554
    I can't use any 3rd party plugins in current project, and I'm looking for an algorithm, not an asset.

    So if someone knows a working approach for this, it would save me some time.