Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
The final piece of the puzzle to get our animation working is to animate the phase. Go ahead and select the turbulence field, from the attribute editor we can right click on face x and choose create new expression. And this opens up the expression editor, and the selected object and attribute are displayed here. I'll select that, and then middle-mouse drag it down into the Expression area here. To make that text larger, we can hold down the Control Key, or Command on the Mac, and turn the mouse wheel.
And that'll just increase the size of that text. We want to set Turbulence Field one dot Phase X equal to something. And we're just going to drive it with time. Time is a function in Maya, and as we play in animation, time moves forward. So we can just set this equal to time. But if we did that it would move very, very slowly. We need to speed it up. So we'll set this equal to time, multiplied by 100. And then use a semicolon to end the line, that's the expression for phase X but we have also got phase Y and phase Z and if we don't animate all of those then we won't really get a good look to our wind so we need to animate all three X, Y and Z, well we can just actually select this text and copy it with control c or command c. And press enter to put a new line.
And paste that in with control v or command v. And we don't actually want to use the exact same value here. There's only one time node in maya currently. And with only one time node, then if the phase x, y and z are all equal. Then it will not look chaotic, it will have a kind of weird pattern to it, where it looks like it's moving diagonally. So we want to set phase Y, capital Y, equal to time multiplied by 100 plus some arbitrary value.
This is just going to offset the value. So I'll put some parentheses around that and then a plus sign and then some arbitrary value. It doesn't matter what it is, just so it's not equal to this one. And I'll select that text as well and copy it and then paste it on a line below and set phase z equal to some other arbitrary value here. Okay. And then when we've got this ready, we'll click Create. I want to warn you about the expression editor. If you click off the expression editor you will lose the expression completely so, make sure you don't lose focus on that expression editor and click create.
Go ahead and close it and now you will see phase x, y and z have values in them and they're highlighted in purple indicating there's an incoming expression noted. Very good, so I rewind and press play and there you go. Now we got grass blowing in the wind. You can see the fruits of all of our labors. Notice that it's only playing back at about seven or eight frames per second. So if we want to actually preview this and make sure that we know what's doing we have to do a rendering or perhaps a play blast.
I always have the frame rate displayed in the Viewport when I'm animating in Maya. And if you don't have that visible, then you might want to do so. You can go into the Display menu, and choose Heads Up Display > Frame Rate. Also, be aware that this frame rate readout is only accurate in a full-screen Viewport panel. If you have a multiple view panel like the standard four view port layout then you can't trust the output of the frame rate its not necessarily accurate.
Get unlimited access to all courses for just $25/month.Become a member
100 Video lessons · 8530 Viewers
107 Video lessons · 37407 Viewers
94 Video lessons · 26715 Viewers
147 Video lessons · 6170 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
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.