pyvista.Property.metallic#
- property Property.metallic: float[source]#
Return or set metallic.
Default
pyvista.plotting.themes._LightingConfig.metallic
.This requires that the interpolation be set to
'Physically based rendering'
. Must be between 0 and 1.Examples
Set metallic to 0.1
>>> import pyvista as pv >>> prop = pv.Property() >>> # requires physically based rendering >>> prop.interpolation = 'pbr' >>> prop.metallic = 0.1 >>> prop.metallic 0.1
Visualize default metallic.
>>> prop.metallic = 0.0 >>> prop.plot()
Visualize metallic at
0.5
.>>> prop.metallic = 0.5 >>> prop.plot()
Visualize metallic at
1.0
.>>> prop.metallic = 1.0 >>> prop.plot()