material_appearance#

property Material.material_appearance[source]#

Material appearance specified as a list where the first three items are RGB color and the fourth one is transparency.

Returns:
list

Color of the material in RGB and transparency. Color values are in the range [0, 255]. Transparency is a float in the range [0,1].

Examples

Create a material with color [0, 153, 153] (darker cyan) and transparency 0.5.

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss(version="2021.2")
>>> mat1 = hfss.materials.add_material("new_material")
>>> appearance_props = mat1.material_appearance
>>> mat1.material_appearance = [0, 153, 153, 0.5]