# Edit Image Data in Scalar Volume Node

**URL:** <https://discourse.slicer.org/t/edit-image-data-in-scalar-volume-node/317>\
**Category:** Development\
**Created:** [May 15, 2017, 9:09pm UTC](https://discourse.slicer.org/t/edit-image-data-in-scalar-volume-node/317 "2017-05-15T21:09:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jks1995](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jks1995](https://discourse.slicer.org/u/jks1995)\
**Post date:** [May 15, 2017, 9:09pm UTC](https://discourse.slicer.org/t/edit-image-data-in-scalar-volume-node/317/1 "2017-05-15T21:09:34Z")

</div>

Hello,

I am working on an extension where I am instantiating a new scalar volume node and then want to edit the values of the data for use later. I notice when I instantiate a new node that there is no image data, so I was hoping for guidance on how to set up a 3d array that is blank and then edit that with something similar to the SetScalarComponentFromDouble method.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 15, 2017, 9:10pm UTC](https://discourse.slicer.org/t/edit-image-data-in-scalar-volume-node/317/2 "2017-05-15T21:10:14Z")

</div>

[https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Create\_a\_new\_volume](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Create_a_new_volume)
