How to update parameters of node material

i have node setup like this

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) => {



You can use smthg like this

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

it worked thanks


nodeMaterial.getBlockByName("OrginalTexture").texture = ...;
nodeMaterial.getBlockByName("MaskedTexture").texture = ...;
1 Like

Yup way better !!! thanks @Evgeni_Popov :slight_smile:

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

It does work in this PG:

1 Like