Panel plugin edits must be initiated from a supported UI event

I’m getting this error when setting the sceneNode.pluginData when using my panel.

I have a panel that exports on the panel update() method. So there is no plugin UI event that it originates from. But there is a design view UI event that it originates from.

I get this error intermittently. It might happen when I create a new artboard with the panel open.

The guidelines say that any edits must be initiated by some user UI action in the panel (apparently a click handler on anything is enough), and I think that makes sense. You don’t want a panel to start mucking with the document unless you do something that requests a change.

Maybe but if someone moves or resizes something on the stage it is a UI action.

… unless you do something in the panel that requests a change.