Door Animation Setup

At the moment I have done a door animation in 3dsmax.

Door is closed at frame 0. Between frame 0 and 20 it opens. Then I don't know how to animate - What shall be between frame 20 and 100?

Shall it be open, 20-80 and then I animate it to close 80-100? Or shall I just close directly after frame 20 and closed at frame 40? How does it works and how should I do? I don't know how to scrpt it yet but I think I need to make the animation first.

Just to clear out things, I want my door to be opened via pressing a button at the wall, and it is a sci-fi "blast door" that opens very fast, if it makes any diffrence.

Thanks :)

You could either make an animation that opens, stays open, and then closes, but that would mean you would have to tinker with the animation when you should ever decide to change the opening time of a door. Also you might not want it to shut down automatically while you are walking through.

A better idea would be to just have an opening animation and maybe a closing animation (which basically is the reversed opening animation) and trigger them accordingly.
To make the door stay open you can just set the opening animation wrap mode to clamp forever. That should keep it open until you trigger the closing animation.

If you are lazy you could also just set the time for opening animation to -1 to reverse it and use it as closing animation.

For my project, I did four door animation..

  1. Door closed - prolly it's 1-1?
  2. Door opening - 1-20 in your case?
  3. Door open - 20-20
  4. Door closing - 21-40

hope this helps.. :)