8
MaterialByElement Modifier 707
Procedure
Example: To change the material ID of a sub-object
selection:
1.
IntheTopviewport,createasphere.
2. In the Material Editor, create a
multi/sub-object material.
Make the colors of material ID 1 and 2 different.
3. Assign the multi/sub-object material to
the sphere.
4. OntheModifypanel,chooseMesh
Selec t from the Modifier List.
5. On the Mesh Select Parameters rollout,
click Polygon.
6. In the Front viewport, region-select the lower
half of the sphere.
The selected polygons turn red.
7. While Polygon is still the active sub-object level
(in the stack display, a square polygon icon
appears to the right of Mesh Select), choose
Material from the Modifier L ist.
8. On the Material modifier Parameters rollout,
set the value of the Mater ial ID to 1 and 2 to
toggle the color on and off.
In the shaded v iewport, the lower half of the
sphere changes to the color of the selected
mater ial ID.
Inter face
Mater ial ID—Sets the material ID to be assigned;
this can b e animated. If the input object is in
face sub-selection, then the ID is only applied
to selected faces; otherwise, it is applied to the
entire object. The ID number refers to one of the
materials in a multi/sub-object material.
M ater i a lB y E lement M odif i er
Modify panel > Make a selection. > Modifier List >
Object-Space Modifiers > MaterialByElement
Make a selection. > Modifiers menu > Surface > Material
By Element
The MaterialByElement modifier lets you apply
different material I Ds to objects containing
multiple elements, at random or according to a
formula. When animated, this effect is useful for
such applications as an office building at night
with window i llumination turning on and off at
random.
Various materials randomly applied to the leaves of the plant
Procedure
Example: To assign colors ra ndomly in a group of
spheres:
1.
Create six spheres.
One method is to add a
sphere (page 1–169)
primitive, then use SHIFT+
Move (p age 1–419)
with the Copy option, and enter 5 in the
Number of copies field.