Skip to main content

get_block_visibility()

Returns the visibility state of a block.

The visibility state is tracked internally and persists across render cycles. Defaults to True for blocks not yet tracked.

Parameters
  • block_name (str) — The name of the block to check.
Returns
  • boolTrue if the block is visible, False otherwise.

Example

from pyemsi import Plotter

p = Plotter("mesh.vtm")
p.show()

# Check visibility of a specific block
is_visible = p.get_block_visibility("coil")
print(f"Coil visible: {is_visible}")

See Also