Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Setting an initial state

From: Creating Simulations in Maya Dynamics

Video: Setting an initial state

We want to set an initial state for the dynamic objects. The initial state is the position, orientation and velocity of the object at the first frame of the simulation. What is it doing at the beginning of the shot? Currently I have got all my objects in the air and when I press Play they land. What I want to have happen is I want them to be fully settled down and in contact with the floor on Frame 1. Now you might think that one way to do that would be to simply select your object and just kind of move it down until it's touching. This is not really a good way to do this.

Setting an initial state

We want to set an initial state for the dynamic objects. The initial state is the position, orientation and velocity of the object at the first frame of the simulation. What is it doing at the beginning of the shot? Currently I have got all my objects in the air and when I press Play they land. What I want to have happen is I want them to be fully settled down and in contact with the floor on Frame 1. Now you might think that one way to do that would be to simply select your object and just kind of move it down until it's touching. This is not really a good way to do this.

For one it might actually be overlapping. If I tap the Spacebar and go out here, you might actually be overlapping the ground plane and if that's the case at Frame 1 then that's going to break your simulation completely. You can't have objects overlapping in a Dynamic Simulation; they just won't work properly. They have to be separated and not touching. You think all right, well I'll just move it up a little bit and that way it's not touching. Well, actually you can't see it, but there's actually a distance between these two at which they'll be considered to be touching.

In other words, there might be a tolerance of let's say 1 millimeter and if they're closer together than 1 millimeter then Maya thinks they're touching. They're farther away than a millimeter than Maya thinks they are not touching. The simple thing to do is just to set the initial state, drop the objects on the ground and then say boom, this is your new start point. That's exactly what we'll do here. So I'll just play my simulation until everything is settled down and for heavy scenes it may take a long time to play through. You may need to rewind and actually step through one frame at a time, until your simulation settles down.

Again, that's for really heavy scenes that have a lot going on. This one's a pretty lightweight scene, so don't really need to sweat it too much. As long as I play that through either in real time or one frame at a time until they're completely settled down. Then I'm ready to set their initial state here I am on Frame 46. So whatever these objects are doing on Frame 46 that will be their new state at Frame 1. So I can select one or more of these objects. Maybe I'll just actually select everything.

I've got all of my high LOD objects hidden and I have only selected the low LOD pins as well as the ball and I'm parked on Frame 46 and everything settled down, I'll go up to the Dynamics menu set and choose Solvers>Initial State>Set for Selected. Now I want to warn you that there's no way to remove the initial state for this Dynamic System. In other words, once you do this you can't go back.

You could move the objects, you could rerun a simulation and you could set a new initial state, but you can't really remove the initial state for the rigid bodies in Maya. You can do it for nCloth and other forms of Dynamics, but just not this one. So I'll choose Set for Selected and then when I hit Rewind, now all the objects are touching the ground on Frame 1 and when I press Play basically nothing happens-- they kind of drift around a little bit there, but not enough that anyone would ever notice. And that's very important. Even if your animation isn't starting with things sitting on the ground, it's just a really good idea that you establish an initial state that way you'll always be able to get back to that point by just rewinding.

Show transcript

This video is part of

Image for Creating Simulations in Maya Dynamics
Creating Simulations in Maya Dynamics

41 video lessons · 2570 viewers

Aaron F. Ross
Author

 
Expand all | Collapse all
  1. 3m 50s
    1. Welcome
      52s
    2. Prerequisites
      1m 20s
    3. Using the exercise files
      1m 38s
  2. 49m 16s
    1. Understanding the rigid body solver
      2m 3s
    2. Setting animation preferences
      3m 48s
    3. Choosing a scale convention
      4m 23s
    4. Laying out the scene
      1m 46s
    5. Modeling proxy objects
      7m 15s
    6. Constraining renderable objects to proxies
      4m 47s
    7. Organizing display layers
      1m 56s
    8. Creating passive rigid bodies
      4m 0s
    9. Creating active rigid bodies
      1m 13s
    10. Adding a Gravity field
      6m 52s
    11. Moving the center of mass
      4m 19s
    12. Setting an initial state
      3m 42s
    13. Imparting initial velocity
      3m 12s
  3. 31m 5s
    1. Improving performance with stand-ins
      3m 48s
    2. Disabling rigid body nodes with Ignore
      4m 33s
    3. Adding bounce
      1m 54s
    4. Adding friction
      2m 36s
    5. Adjusting mass
      3m 23s
    6. Applying damping
      2m 0s
    7. Tuning rigid body solver attributes
      4m 17s
    8. Adding a Radial field
      1m 48s
    9. Limiting a field with Max Distance
      2m 37s
    10. Softening a field with attenuation
      1m 23s
    11. Adjusting field attributes with manipulators
      2m 46s
  4. 31m 21s
    1. Disabling solver evaluation
      2m 7s
    2. Keyframing field magnitude
      5m 2s
    3. Pushing an active body with Impulse
      4m 15s
    4. Keying the active attribute
      6m 8s
    5. Baking the simulation to keyframes
      4m 30s
    6. Deleting all rigid body nodes
      2m 1s
    7. Editing keyframes in the Graph Editor
      2m 17s
    8. Simplifying animation curves
      5m 1s
  5. 15m 38s
    1. Understanding dynamic constraints
      5m 15s
    2. Creating dynamic objects
      1m 0s
    3. Creating a Hinge constraint
      2m 24s
    4. Creating a Spring constraint
      3m 12s
    5. Fine-tuning attributes
      3m 47s
  6. 29s
    1. Goodbye
      29s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Creating Simulations in Maya Dynamics.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.