apply_to_layers
Apply property changes (visible, opacity, colormap, etc.) to layers filtered by type or name pattern.
Instructions
Apply property changes to multiple layers matching a filter.
Parameters
filter_type : str, optional
Layer type name to match (e.g., "Image", "Labels", "Points").
filter_pattern : str, optional
Glob pattern matched against layer names (e.g., "seg_*").
properties : dict, optional
Properties to set on matched layers. Supported keys: visible,
opacity, colormap, blending, contrast_limits,
gamma, new_name (renames by appending a suffix is NOT
supported — use set_layer_properties individually).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter_type | No | ||
| filter_pattern | No | ||
| properties | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||