pyvista.Actor.prop

Contents

pyvista.Actor.prop#

property Actor.prop[source]#

Return or set the property of this actor.

Examples

Modify the properties of an actor after adding a dataset to the plotter.

>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> actor = pl.add_mesh(pv.Sphere())
>>> prop = actor.prop
>>> prop.diffuse = 0.6
>>> pl.show()
../../../_images/pyvista-Actor-prop-1_00_00.png