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
You can use the checkBox command with an edit flag to change the state of
a check box in the user interface.
To change the values of elements in the user interface
1 In the tempMEL tab, change the state of the make roll window’s check
box by executing the following:
checkBox -edit -value 0 $box_sim_checkbox;
The Box Simulation check box, which was turned on, is now turned off.
You can repeat this command with a value of 1 to turn the check box
back on.
This shows the use of the edit flag with a command as an argument to
a command flag, which allows you to change values.
We’ll now use the onCommand and offCommand flags to keep the two check
boxes in sync, so that when one check box has its state changed, the
other check box is set to the opposite state.
2 Replace the existing check box commands ($box_sim_checkbox and
$sphere_sim_checkbox) in the MEL2 tab. This will be approximately lines
38-46 depending on whether you added lines at the beginning of the file.
Replace these two commands with the following:
$box_sim_checkbox = `checkBox -value 1 -label "Box Simulation"
-onCommand "checkBox -edit -value 0 $sphere_sim_checkbox;" -
offCommand "checkBox -edit -value 1 $sphere_sim_checkbox;"`;
$sphere_sim_checkbox = `checkBox -value 0 -label "Sphere Simu
lation" -onCommand "checkBox -edit -value 0 $box_sim_checkbox;"
-offCommand "checkBox -edit -value 1 $box_sim_checkbox;"`;
The commands you are replacing are located on lines 35-43 of the original
script file.
Linking the user interface | 639