# Updating inputs in a NodeGeometry loaded from JSON

**URL:** <https://forum.babylonjs.com/t/updating-inputs-in-a-nodegeometry-loaded-from-json/59552>\
**Category:** Questions\
**Tags:** nodegeometry\
**Created:** [July 15, 2025, 9:19pm UTC](https://forum.babylonjs.com/t/updating-inputs-in-a-nodegeometry-loaded-from-json/59552 "2025-07-15T21:19:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Scherotter1](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/michael_scherotter1/32/16678_2.png) [@Michael\_Scherotter1](https://forum.babylonjs.com/u/Michael_Scherotter1)\
**Post date:** [July 15, 2025, 9:19pm UTC](https://forum.babylonjs.com/t/updating-inputs-in-a-nodegeometry-loaded-from-json/59552/1 "2025-07-15T21:19:57Z")

</div>

I have created a NodeGeometry from the JSON generated by the Node Geometry Editor and succesfully created a mesh using NodeGeometry.createMesh.  
I can get the inputs to the node geometry with NodeGeometry.getInputBlocks()  
If I modify the value of one of the inputs blocks, how do then regenerate the geometry?

I have tried  
NodeGeometry.updateMesh(this.\_mesh) and calling NodeGeometry.createMesh() but both APIs use the original values in the node geometry JSON,

Am I missing a step?

Please advise.  
Thanks,  
Michael

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [July 15, 2025, 9:42pm UTC](https://forum.babylonjs.com/t/updating-inputs-in-a-nodegeometry-loaded-from-json/59552/2 "2025-07-15T21:42:44Z")

</div>

you need to dispose the previous one and call create mesh again.  
The process is quite fast and can happen within a frame

---

<div class="post-metadata">

**Author:** ![Michael\_Scherotter1](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/michael_scherotter1/32/16678_2.png) [@Michael\_Scherotter1](https://forum.babylonjs.com/u/Michael_Scherotter1)\
**Post date:** [July 15, 2025, 9:46pm UTC](https://forum.babylonjs.com/t/updating-inputs-in-a-nodegeometry-loaded-from-json/59552/3 "2025-07-15T21:46:05Z")

</div>

That is one of the options that I tried but it did not work. I eventually found that I had to call NodeGeometry.build() to get it to rebuild and then the updateMesh() worked fine.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [July 15, 2025, 9:58pm UTC](https://forum.babylonjs.com/t/updating-inputs-in-a-nodegeometry-loaded-from-json/59552/4 "2025-07-15T21:58:48Z")

</div>

Oh sorry this is my bad. I misunderstood the question 😃  
You are totally right!
