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()
https://d33wubrfki0l68.cloudfront.net/5ac67cd7c72c2916a5a3a0ca3d12e2f2129c0ee5/72825/_images/pyvista-actor-prop-1_00_00.png