# How to update parameters of node material

**URL:** <https://forum.babylonjs.com/t/how-to-update-parameters-of-node-material/12162>\
**Category:** Questions\
**Tags:** material\
**Created:** [July 2, 2020, 8:00am UTC](https://forum.babylonjs.com/t/how-to-update-parameters-of-node-material/12162 "2020-07-02T08:00:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishna\_Kishore](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/krishna_kishore/32/3682_2.png) [@Krishna\_Kishore](https://forum.babylonjs.com/u/Krishna_Kishore)\
**Post date:** [July 2, 2020, 8:00am UTC](https://forum.babylonjs.com/t/how-to-update-parameters-of-node-material/12162/1 "2020-07-02T08:00:39Z")

</div>

i have node setup like this

[https://nme.babylonjs.com/#JMMXP3](https://nme.babylonjs.com/#JMMXP3)

i am trying to access the nodel material, once i get the node, how to update my texture parameters in node material before setting to mesh

NodeMaterial.ParseFromSnippetAsync("#WA6KIC", Threedscene).then((nodeMaterial) =\> {

dome.mesh.material=nodeMaterial;

}

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [July 2, 2020, 8:51am UTC](https://forum.babylonjs.com/t/how-to-update-parameters-of-node-material/12162/2 "2020-07-02T08:51:51Z")

</div>

You can use smthg like this

```auto
nodeMaterial.getTextureBlocks()[0].texture = noiseTexture;

```

---

<div class="post-metadata">

**Author:** ![Krishna\_Kishore](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/krishna_kishore/32/3682_2.png) [@Krishna\_Kishore](https://forum.babylonjs.com/u/Krishna_Kishore)\
**Post date:** [July 2, 2020, 10:07am UTC](https://forum.babylonjs.com/t/how-to-update-parameters-of-node-material/12162/3 "2020-07-02T10:07:23Z")

</div>

it worked thanks

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [July 2, 2020, 10:47am UTC](https://forum.babylonjs.com/t/how-to-update-parameters-of-node-material/12162/4 "2020-07-02T10:47:53Z")

</div>

Or:

```javascript
nodeMaterial.getBlockByName("OrginalTexture").texture = ...;
nodeMaterial.getBlockByName("MaskedTexture").texture = ...;

```

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [July 2, 2020, 10:57am UTC](https://forum.babylonjs.com/t/how-to-update-parameters-of-node-material/12162/5 "2020-07-02T10:57:24Z")

</div>

Yup way better !!! thanks @Evgeni_Popov 🙂

---

<div class="post-metadata">

**Author:** ![Krishna\_Kishore](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/krishna_kishore/32/3682_2.png) [@Krishna\_Kishore](https://forum.babylonjs.com/u/Krishna_Kishore)\
**Post date:** [July 4, 2020, 8:07am UTC](https://forum.babylonjs.com/t/how-to-update-parameters-of-node-material/12162/6 "2020-07-04T08:07:31Z")

</div>

this is not working, it is saying texture property is not there

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [July 4, 2020, 9:07am UTC](https://forum.babylonjs.com/t/how-to-update-parameters-of-node-material/12162/7 "2020-07-04T09:07:16Z")

</div>

It does work in this PG:

[https://playground.babylonjs.com/#CJEJD1](https://playground.babylonjs.com/#CJEJD1)
