How to define that a light works only at specific node

I want to cancel the lighting of the pin in the figure and keep the lighting effect of the model itself. Can it be realized? If so, how can it be realized? Thanks

Hi,

in order to achieve that you would need to set a specific instanceModifier on the node where the pin resides:

hwv.model.setInstanceModifier(Communicator.InstanceModifier.DoNotLight, [nodepinnode], true);

Unfortunately there is no good way right now to get to the nodepin geometry so for now your best best would be to write your own note-pin logic. You can find the typescript source for the note-pin functionality in the “web_viewer\typescript\operators\Markup\Note” folder of the HOOPS Communicator Package.

Thanks,
Guido

1 Like

Hi, when the assembled part explodes, can the Note pins move along with the component moving? If can, How we achieve this?