2009
Table Of Contents
- Contents
- Overview
- Maya Basics
- Polygonal Modeling
- Introduction
- Preparing for the lesson
- Lesson 1: Modeling a polygonal mesh
- Introduction
- Setting modeling preferences
- Using 2D reference images
- Creating a polygon primitive
- Modeling in shaded mode
- Model symmetry
- Selecting components by painting
- Selecting edge loops
- Editing components in the orthographic views
- Editing components in the perspective view
- Drawing a polygon
- Extruding polygon components
- Bridging between edges
- Adding polygons to a mesh
- Splitting polygon faces
- Terminating edge loops
- Deleting construction history
- Mirror copying a mesh
- Working with a smoothed mesh
- Creasing and hardening edges on a mesh
- Beyond the lesson
- NURBS Modeling
- Subdivision Surfaces
- Animation
- Introduction
- Preparing for the lessons
- Lesson 1: Keyframes and the Graph Editor
- Lesson 2: Set Driven Key
- Lesson 3: Path animation
- Lesson 4: Nonlinear animation with Trax
- Introduction
- Open the first scene for the lesson
- Creating clips with Trax
- Changing the position of clips with Trax
- Editing the animation of clips
- Reusing clips within Trax
- Soloing and muting tracks
- Scaling clips within Trax
- Open the second scene for the lesson
- Creating clips from motion capture data
- Extending the length of motion capture data
- Redirecting the motion within a clip
- Beyond the lesson
- Lesson 5: Inverse kinematics
- Introduction
- Open the scene for the lesson
- Understanding hierarchies
- Viewing hierarchies using the Hypergraph
- Creating a skeleton hierarchy
- Parenting a model into a skeleton hierarchy
- Applying IK to a skeleton hierarchy
- Creating a control object for an IK system
- Constraining an IK system
- Limiting the range of motion of an IK system
- Simplifying the display of a hierarchy
- Applying parent constraints on an IK system
- Planning an animation for an IK system
- Animating an IK system
- Beyond the lesson
- Character Setup
- Polygon Texturing
- Rendering
- Introduction
- Preparing for the lessons
- Lesson 1: Rendering a scene
- Introduction
- Open the scene for the lesson
- Creating shading materials for objects
- Refining shading materials for objects
- Maya renderers
- Rendering a single frame using IPR
- Rendering using the Maya software renderer
- Batch rendering a sequence of animation frames
- Viewing a sequence of rendered frames
- Beyond the lesson
- Lesson 2: Shading surfaces
- Lesson 3: Lights, shadows, and cameras
- Lesson 4: Global Illumination
- Lesson 5: Caustics
- Dynamics
- Painting
- Introduction
- Preparing for the lessons
- Lesson 1: Painting in 2D using Paint Effects
- Lesson 2: Painting in 3D using Paint Effects
- Introduction
- Preparing for the lessons
- Brushes and strokes
- Rendering Paint Effects strokes
- Paint Effects on 3D objects
- Creating a surface to paint on
- Painting on objects
- Using turbulence with brush stroke tubes
- Using additional preset brushes
- Mesh brushes
- Converting mesh strokes to polygons
- Modifying a converted polygonal mesh
- Beyond the lesson
- Lesson 3: Painting textures on surfaces
- Expressions
- Scripting in Maya
- Index
The window command creates a user interface window to contain the controls.
For more information, see
Creating a window on page 624.
Column layout
columnLayout;
The columnLayout command creates a layout that arranges the controls within
it in a column. For more information, see Referencing controls on page 625.
Text field commands
$obj_name_text = `textField -editable 0 -width 400 -text
name_Of_Object`;
The command textField creates an editable text field. The text field command
has multiple flags. The name and path of the text field are stored as a variable.
See
Storing control names on page 629.
■ The editable flag enables or disables editing of the text field.
■ The width flag sets the width of the control.
■ The text flag sets the contents of the text field.
Slider commands
$ground_int= `intSliderGrp -minValue -20 -maxValue 20 -value 0
-fieldMinValue -20 -fieldMaxValue 20 -field 1 -label "Ground
Plane"`; $diameter_float= `floatSliderGrp -value 1.0 -minValue
1.0 -fieldMinValue 1.0 -field 1 -label "Diameter"`;
The commands intSliderGrp and floatSliderGrp create sliders. Commands
ending in Grp create a group of linked controls. The slider commands create
controls for a label, a value box and a slider. The slider command has multiple
flags. The name and path of the slider are stored as a variable. See
Storing
control names
on page 629.
■ The editable flag can be used to enable or disable editing of the text field.
■ The minValue and maxValue flags set the minimum and maximum values
for the slider.
■ The field flag enables the visibility of an editable value field beside the
slider. By default, the field is not visible.
634 | Chapter 13 Scripting in Maya