M1: node.get reports layer data (pluginData) (#879)

Layer data written with node.set {props: {pluginData}} was saved but no
command read it back. node.get (the command, the control method and MCP
get_node) and document.inspect now report pluginData as {key: value}
when a layer or page has any, so a tool keeping state in a file can
read it on its next run. Widget keys are included: the plugin rules
only stop plugins writing them, and widget.list already reports that
state.
This commit is contained in:
bflatastic
2026-10-20 04:58:32 +07:00
parent 4c1546eed2
commit 05da6b2125
8 changed files with 46 additions and 4 deletions
+3 -1
View File
@@ -460,4 +460,6 @@ import what you need from `figcraft`.
vectors, components or variables).
- Panels: no images, sliders or free layout inside a panel.
- Data in the document: plugins keep data on layers (pages included) with `node.set {props:
{pluginData: {key: value}}}`; there is no separate per-document store.
{pluginData: {key: value}}}` (a `null` value removes a key) and read it back with `node.get`, which
reports `pluginData: {key: value}` (values as strings) when a layer has any; there is no separate
per-document store.