pyvista.MultiBlock.get_index_by_name# MultiBlock.get_index_by_name(name: str) → int[source]# Find the index number by block name. Parameters: namestrName of the block. Returns: intIndex of the block. Examples >>> import pyvista as pv >>> data = { ... "cube": pv.Cube(), ... "sphere": pv.Sphere(center=(2, 2, 0)), ... } >>> blocks = pv.MultiBlock(data) >>> blocks.get_index_by_name('sphere') 1