pytha.set_element_material - pytha-3d-cad/pytha-lua-api GitHub Wiki
Sets the material of a single element or a table of elements.
Similar to the Materials-> Assign function in the PYTHA user interface.
pytha.set_element_material(element, material)
| Parameter | Type | Description |
|---|---|---|
element |
element_handle or {...} |
A single element handle or a table of element handles |
material |
material_handle |
Handle to a material. |
The material handle has to be retreived via select_material.
See also:
pytha, element handles, set_element_attributes, select_material