guide_material¶
Python reference for nagasim.appearance.guide_material. Provisional: it may change between minor versions, see Appearance.
The material of a piece's side guides; use it rather than the raw MATERIALS entry.
A round or flat guide rail is bare zinc; a panel guide is cut from the frame, so it takes the
frame's material (material("frame_color", frame_color)). Colours are sRGB #RRGGBB; a glTF
base colour is linear_rgb(srgb(m.color)).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
style
|
str
|
The piece's |
required |
frame_color
|
str
|
The piece's |
required |
Returns:
| Type | Description |
|---|---|
Material
|
The guide's colour, metallic and roughness. |
Raises:
| Type | Description |
|---|---|
ValueError
|
When style is not a guide style, or a panel's frame_color is not a frame colour. |
See Also
nagasim.appearance.material : The material of any other look value.
nagasim.appearance.look_of : The piece's guide_style and frame_color.
Examples:
>>> from nagasim.appearance import guide_material, material
>>> guide_material("panel", "orange") == material("frame_color", "orange")
True