Back to the Shapespark home page

[API] Get material/node name by click

Hi everyone,

is it possible to get the name of a material or a node by clicking on in?
As far as i understand, the functions onMaterialClicked and onNodeTypeClicked do not work here, because you have to give them the name of the node/material.



The nodeTypeName argument to Viewer.onNodeTypeClicked is optional. If you omit it, the callback is called for a click in any node.

My bad, must be the heat.
I promise I’ll come back with more challenging questions in the future. :smile:

Thank you

1 Like