We’re trying to create custom Materials through the Viewer API, which we can then assign to nodes with their material ID.
The problem is that these seem to be randomly generated when the API creates the material, making it difficult to use with assignMaterial. We’ve looked around and tried setting this to a custom value (similar to setting the name, which does work), but material ID doesn’t seem to work in quite the same way.
Is there a specific ID selector within the createMaterial function we’re missing, or is there perhaps a way to assign this material through, say, its name instead of ID?
Any help welcome.