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

[SOLVED] Animation export from Maya 2011 to Unity 2.6

Discussion in 'Asset Importing & Exporting' started by Longhorn, Jul 26, 2010.

  1. Longhorn

    Longhorn

    Joined:
    Jul 26, 2010
    Posts:
    3
    Hello,

    I'm discovering Unity, and I'm trying to export an animation from Maya 2011 to Unity.

    I create a sphere in Maya. I create two joints, which are positionned inside the sphere. I do a smooth bind. At frame 1, I key the x,y and z rotation. At frame 25, same thing.
    So, from frame 1 to 25, my sphere rotates a bit. That's my animation.

    In Maya, I choose Export All. Export as FBX, in the Assets folder of my Unity Project folder.

    In Unity, the sphere and the joints are in the project folder. I can drag them to the hierarchy.
    BUT no animation ! Nothing in the inspector, even when I "add" a new line under Split Animations.

    What am I doing wrong ?

    Thank you.
     
  2. sama-van

    sama-van

    Joined:
    Jun 2, 2009
    Posts:
    1,734
    In the maya's script editor apply the following lines and try again :

    Code (csharp):
    1.  
    2. FBXResetExport;
    3.  
    It could also be a scale issue.... but do you have the animation node once imported in Unity?
    If you didn't gave a name when exporting the FBX from Maya it should be called "take001" in Unity.
     
  3. Longhorn

    Longhorn

    Joined:
    Jul 26, 2010
    Posts:
    3
    I executed this line of code successfully, but it didn't help :(

    My FBX file is named Test.fbx

    When I import this file in Unity, I get a new icon named Test (looks like a prefab) in my Project Window. When I click to expand this icon, two others icons appear : Sphere and Joint1.
    All of these have an animation component in the inspector.

    Animation component specifies :
    Animation : none (Animation Clip). (also when I drag Test to the Scene view)
    Animations : Size 0

    "Animations" in (FBXImporter) indicates nothing special. Split Animations is checked, that's all.

    Thank you.
     
  4. Longhorn

    Longhorn

    Joined:
    Jul 26, 2010
    Posts:
    3
    Sorry to post again but I've solved the problem !! :D

    Listen. When you export from Maya 2011 (FBX format), in the Export window, in the Options column on the right go to "FBX File Format" and select Version : FBX 2010.
    Mine was set to FBX 2011, and it didn't work ...

    Hope this will help !