Animation layers and animation in general

I’m messing around with 3ds max (beginner) where i now have done an entire level (home). What i want to do is that when the char walks up to a, say, drawer he can press a key (lets say E) and then the animation of the drawer opening is played.

What i’m having trouble understanding is that if i do this with several objects then all the animations are played in 3ds max. Lets say drawer A has animation that is 60 frames long and drawer B has 90 and when i run the animation both drawers open the same time in 3ds max.

My question is: is this an issue in Unity? Such as does the animation play only for drawer A when i pressing E near drawer A or both drawers? If not, is the solution animation layers?

After many “Googles” i have come to the conclusion that what i want is impossible: to have many seperate animations saved into a single FBX-file. Only way to handle this is to either export each animation in a new FBX-file with the “@ -naming scheme” or fiddle around with frames inside Unity and 3ds max. Second options sounds as a very bad idea (for a noob like me) as you never know if you have to change an animation to be for instance 15 frames longer… meaning you would have to move everything.

I guess i have to just make new small anim-files natively inside Unity for stuff such as drawers/doors opening/closing etc.

I’m not sure what your whole project is about but there is another option - put a script on each drawer/door that triggers the animation when you mouse click on a drawer/door. The animation itself does not even have to be created in your 3D modeler but can be in the script itself . Something like this for a door:

cheers, gryff :slight_smile:

Damn… that’s pretty handy actually…

Thank you very much! :stuck_out_tongue: