# How to save slicer scene with both slicer data and with "self.variables" within custom widget

**URL:** <https://discourse.slicer.org/t/how-to-save-slicer-scene-with-both-slicer-data-and-with-self-variables-within-custom-widget/9830>\
**Category:** Development\
**Created:** [January 16, 2020, 1:45am UTC](https://discourse.slicer.org/t/how-to-save-slicer-scene-with-both-slicer-data-and-with-self-variables-within-custom-widget/9830 "2020-01-16T01:45:57Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Juicy](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Juicy](https://discourse.slicer.org/u/Juicy)\
**Post date:** [February 4, 2020, 4:24am UTC](https://discourse.slicer.org/t/how-to-save-slicer-scene-with-both-slicer-data-and-with-self-variables-within-custom-widget/9830/11 "2020-02-04T04:24:38Z")

</div>

Thanks for the reply. So will the parameter node save the inputs which were in the input boxes when the apply button is pressed?

Then when the scene is loaded again it repopulates the input boxes with the same nodes somehow?

I will read through the code in segment statstics module etc and try and figure out how to store the data and retreive it again. It is a bit difficult to understand with my non programming brain 🙂

---

_[View the full topic](https://discourse.slicer.org/t/how-to-save-slicer-scene-with-both-slicer-data-and-with-self-variables-within-custom-widget/9830)._
