Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by dendens2 · Mar 16, 2013 at 02:46 AM · animationfbx3dsmax

Imported Animations From 3DS Max

Hi, so I imported a 3ds max file (converted to a FBX first) and it did have an animation. I was wondering how do I use that animation in unity. When I place it in the scene view, it is at its first frame (which I want until I want it to reload). How do I play the animation? Thanks!

http://puu.sh/2iqCZ

Notice the Take 001 in the prefab and the Animator component.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
3

Answer by Seth-Bergman · Mar 16, 2013 at 04:11 AM

http://docs.unity3d.com/Documentation/Manual/AnimationScripting40.html

the docs are pretty good on this, take the time to read them..

Now, once you've put the model into your project, you can select it in the Assets panel, and then it's import data becomes available on the Project panel.. Select the animation tab at the top..

alt text

On the animation tab, I have selected the clip (highlighted in blue), which opens further info regarding the anim.. Here, you can rename your anim, and split it up according to keyframes if there are multiple anims on the same object..

Now, when you drop an instance of the object into the scene, it can be played as:

  animation.Play();

if the object has multiple anims, you will play them by the name (as you set it, as described above):

  animation.Play("walk");

for example... (as it stands, you could say for example "animation.Play("Take 001");" that would work..)

simple as that.. often we want to fade between anims, so instead we use:

   animation.Crossfade("nameOfAnim");

instead.. check out the docs for more, such as blending and layers, etc...


animationpanel1.jpg (125.5 kB)
Comment
Add comment · Show 10 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image dendens2 · Mar 16, 2013 at 05:31 AM 0
Share

Ok, so it seems to give me a console message saying "Default clip could not be found in attached animations list". What does it mean if I only have one clip in there? I am using animation.Play();

http://puu.sh/2ive5

avatar image Seth-Bergman · Mar 16, 2013 at 06:23 AM 0
Share

right below the default anim, change "size" to 1, then add the anim there too.. sorry I don't know macanim yet, there is probably a newer way to do this...

apparently you must also mark the clip as "legacy" for this to work, again this will be in the import settings (on the "rig" tab)

avatar image dendens2 · Mar 16, 2013 at 03:59 PM 0
Share

Ok that works, but now when the animation plays, it rotates the gun and moves a different position. Then when it stops, it also stays at that position. why is that happening?

avatar image Seth-Bergman · Mar 16, 2013 at 06:17 PM 0
Share

you can change the wrap$$anonymous$$ode of the anim (in the start function):

  animation["reload"].wrap$$anonymous$$ode = Wrap$$anonymous$$ode.Once;

that should fix it...

avatar image dendens2 · Mar 16, 2013 at 10:18 PM 0
Share

No, changing the wrap mode did not help, it still changes position and rotation when I reload and stays there when it is done. Any other ideas?

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

3ds max animation wont import. cant adjust keyframes? 0 Answers

BlendShapes Animations wont finish. 0 Answers

Importing animation from 3DS Max into Unity problem 3 Answers

How to make a player by 3dmax? 1 Answer

Texture import and animation problems 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges