get

dnois.mt.get(name: str, default_none: bool = False) Material | None

Get material by name from material library.

Parameters:
  • name (str) – Name of the material.

  • default_none (bool) – If true, return None when the material does not exist. Otherwise, an ValueError is raised.

Returns:

Specified material.

Return type:

Material