pcb_set_layer_color
Sets a PCB layer's display color from a #RRGGBB value and reads it back to confirm the change, allowing layer visibility to be adjusted in the live editor.
Instructions
Recolour one layer.
The colour is given as #RRGGBB. Altium holds it internally as
a byte-reversed TColor, and that conversion happens on the Altium
side so no caller has to know about it.
The write is READ BACK before reporting success, because a refused assignment raises nothing and would otherwise be reported as having worked.
Colour is a display setting rather than a property of the board, so it follows the installation rather than travelling with the file.
Args: layer: Layer name, e.g. "TopOverlay" or "Mechanical13". color: Colour as "#RRGGBB".
Returns:
Dict with layer, color and color_hex.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | ||
| layer | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||