# 3.4.2: 选择材料 (Material Selection)

**“Material（材料）”**&#x83DC;单栏中&#x7684;**“Material Selection（材料选择）”**&#x8FD0;算器允许用户从给定材料列表中按照系列、名称或索引选择材料（请参见图[3.4.1.1](/chinese_1_3_3/3-in-depth-component-reference/3.4-material/3.4.1-material-properties.md)或图[3.4.3.2](/chinese_1_3_3/3-in-depth-component-reference/3.4-material/3.4.3-read-material-table-from-file.md)）。通&#x8FC7;**“Mat”**&#x7AEF;口输入材料清单。如果没有提供材料清单，则使用Karamba3D随机附带的材料列表。

输入端&#x53E3;**“Name|Ind（名称|索引）”**&#x9700;要的材料为自零开始的列表索引或是其名称列表。材料名称无需区分大小写。材料名称中的“＃”表示该行的其余部分均为注释。“＆”是一个正则表达式开始——在这种情况下，材料名称应区分大小写。

为了达到快速访问的目的，可以通过单&#x51FB;**“Select（选择）”**&#x680F;上的下拉列&#x8868;**“Family（系列）”**&#x548C;*“Name（名称）”*&#x6765;选择材料。这两个条目用作附加条件，作用于通&#x8FC7;**“Name|Ind（名称|索引）”**&#x8F93;入选择的材料清单。

输入端&#x53E3;**“Elem|Id（元素|索引）”**&#x548C;**“Color（颜色）”**&#x7684;含义&#x4E0E;**“Material Properties（材料特性）”**&#x8FD0;算器中的含义相同（请参阅第[3.4.1](/chinese_1_3_3/3-in-depth-component-reference/3.4-material/3.4.1-material-properties.md)节）。材料中已存在的任何元素标识符都将&#x88AB;**“Elem|Id”**&#x8F93;入的值覆盖。在输入端&#x53E3;**“Color（颜色）”**&#x4E2D;未曾提供颜色的情况下，原始材料颜色仍然存在。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual-1-3.karamba3d.com/chinese_1_3_3/3-in-depth-component-reference/3.4-material/3.4.2-material-selection.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
