assign_material_faces
Assign an existing material to selected faces of one mesh, adding a slot if needed while other faces keep their materials. Create the material first with set_material.
Instructions
Put an existing material on the picked faces of one mesh. Adds a material slot if the object has none for it.
Other faces keep their material. One mesh with several materials costs one draw call per material in the engine, so keep
the count low. Create the material first with set_material.
where picks faces (or vertices, edges) by a condition, all given keys must hold: normal ('+Z', '-X' or [x,y,z]) with
angle (degrees, default 25); x, y, z ranges [min, max] (null means open) on the world centre; box [[x0,y0,z0],[x1,y1,z1]];
area [min, max]; index [...]. {} or null picks everything. Look at mesh_info first to see where the faces are.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| where | No | ||
| object | Yes | ||
| material | Yes |