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'.

Property has range [0.0, 1.0].

Examples

Get the default metallic value and visualize it.

>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.interpolation = 'pbr'  # required
>>> prop.metallic
0.0
>>> prop.plot()
../../../_images/pyvista-Property-metallic-1_00_00.png

Visualize metallic at 0.5.

>>> prop.metallic = 0.5
>>> prop.plot()
../../../_images/pyvista-Property-metallic-1_01_00.png

Visualize metallic at 1.0.

>>> prop.metallic = 1.0
>>> prop.plot()
../../../_images/pyvista-Property-metallic-1_02_00.png