With the Execute page level shape data combined with SetTrigger=ValueChanged and the ExecuteSetsOnInit option I can get a script to run when opening the visual overview (confirmed by logs). However the variable that should contain the output (using engine.AddScriptOutput) from the script is not populated. Triggering the exact same script from clicking a shape-button in the visual overview populates the variable as expected.
How do I get the output into a variable from an automation script running on card open?
Troubleshooting showed that this only works with a scope of CardVariable and broader. I was using PageVariable and while it worked when triggered by button, it did not work when running on visual overview load.