# Save pose when button pressed

**URL:** <https://forum.universal-robots.com/t/save-pose-when-button-pressed/20710>\
**Category:** URCap Development\
**Created:** [April 20, 2022, 1:28pm UTC](https://forum.universal-robots.com/t/save-pose-when-button-pressed/20710 "2022-04-20T13:28:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon54344104](https://avatars.discourse-cdn.com/v4/letter/a/9f8e36/32.png) [@anon54344104](https://forum.universal-robots.com/u/anon54344104)\
**Post date:** [April 20, 2022, 1:28pm UTC](https://forum.universal-robots.com/t/save-pose-when-button-pressed/20710/1 "2022-04-20T13:28:16Z")

</div>

Hi, I’m trying to develop a URcap, I have to move the robot and when a digital input is 1 (there is where i got the button connected), then the pose is saved, and I have to save all those poses for a period of time. I have tried with the ScriptCommunicator ([GitHub - BomMadsen/URCap-ScriptCommunicator: Exemplification of how to communicate with URControl from a URCap](https://github.com/BomMadsen/URCap-ScriptCommunicator)) but it doesn’t let me read the variable where I save the poses. Basically what would help me to solve this is, how to save a variable (in this case an array of poses) during a script sent with ScriptSender and be able to read it later with ScriptExporter.

Thank you very much in advance 🙂
