origin_layer_add
Add a layer to a graph and return its actual index for later operations. Knowing the exact index prevents incorrect assumptions when a graph already has multiple layers.
Instructions
Add a layer (a panel) to a graph, and report which index it got.
Returns the new layer's index because every other operation takes one, and assuming the new layer is 1 is wrong the moment the graph already had two.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||