material_appearance#
- property Material.material_appearance#
Material appearance specified as a list.
The first three items are RGB color and the fourth one is transparency.
- Returns:
listColor 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 transparency0.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]