120 likes | 254 Vues
Discover effective methods to animate motion in Maya using relationships between time and object attributes. Learn to create an object and define how time-based input, such as frames or real-time data, can drive motion. Explore advanced formulas for dynamic movement, like using sinusoidal functions, and understand how to utilize data from external sources, such as music or motion capture, to influence animation. This guide offers insights into secondary motion and how multiple inputs can enhance expressiveness in your animations.
E N D
CNM 190: Proc. Animation A simple way to make things move
Primary Motion • Create an object in Maya • Select an input for the motion; Usually, time, available in Maya as frame or currentTime. • Define a relationship between time passing and an attribute of the object changing. • Define other relationships between time passing and attribute.
Motion Driven by Formulas • torus.translateY = frame; • torus.translateY = sin(frame); • torus.translateY = sin(frame)*cos(frame); • torus.translateY = $forward - $height*cos(frame); • torus.translateX = $forward*(frame) - $height*sin(frame); • Famous curves index: http://www-groups.dcs.st-and.ac.uk/~history/Curves/Curves.html
Motion Driven by Data • Instead of using algebra, we can use samples of real-world events to control animation. • We can use pre-recorded data, such as music, images, water levels, motion capture. • I am not an expert on motion capture. • I capture balance data, though. • We can use live data, such as player input in a video game, RSS feeds or sensor input.
Example: Ast • Six sources of data used: recordings of individual tracks of a jazz tune. • Using MEL scripts, we import each source into Maya as a set of key frames for a locator. • Using Expressions, we connect the locator node data to actual object parameters. • We can also use MEL for the reverse process, getting data out of Maya.
From Data to Motion • One-to-One relation: value of one data stream sets parameter of a given attribute • Direct relation: value of one data stream scaled, summed, or manipulated by other algebraic means • Plural Direct relation: values of several data streams, manipulated by other algebraic means • Interpolated Direct relation: floating averages of a data stream control several attributes • Interpretive relation: Logic operations on data stream interpret data and set conditions.
Secondary Motion • Some motions depend solely on the movements of parent bodies. These are by default procedural. • They still can express multiple inputs: Hair + moisture + time of day
Motion Expresses Multiple Events • Motion is extremely expressive: it can convey many different channels at the same time. • Select an additional change over time besides time itself as an input, for example, the amount of sleep deprivation. • Use the change in sleep deprivation and time to change a character’s height. • Select more inputs as conditions for the character’s motion: food, money, interest, social factors, time of day.