Plotting transparent figure

Hello,

I tried plotting an eeg point dataset on a 3D head mesh. But I wanted the figure to be transparent. Could you please help me with the code?

def find_cell_index(eeg_point):
    index = np.argmin(np.linalg.norm(points - eeg_point, axis=1))
    return index
eeg_cell_indices = []
for eeg_point in eeg_points:
    cell_indices = find_cell_index(eeg_point)
    eeg_cell_indices.append(cell_indices)

V = FunctionSpace(mesh, ("CG", 1))
uBound = Function(V)
uBound.x.array[:] = 0
uBound.x.array[eeg_cell_indices] = 1
import pyvista
grid = pyvista.UnstructuredGrid(*create_vtk_mesh(mesh, mesh.topology.dim))

plotter = pyvista.Plotter()
plotter.add_mesh(grid,scalars = uBound.x.array, cmap="viridis")

pyvista.start_xvfb()
plotter.show()

Thank you!

See: Plot with Opacity — PyVista 0.39.1 documentation