<div dir="ltr">Jim,<br><br>> Does that simple use of the scripted plan also work for you?<br><br>No, that doesn't work for me.  My original script does more stuff, so I need to<br>pass the state via global variables.<br><br>However, I think I've figured out a way to do what I want:<br><a href="https://gist.github.com/nkaretnikov/75c8a0b814246b322d562e7333eb4ba9">https://gist.github.com/nkaretnikov/75c8a0b814246b322d562e7333eb4ba9</a><br><br>Let me know if you find a way to do this via the Python API.<br><br>Thanks,<br>Nikita<div><br></div></div>