ID Tagging for Actors and Mappers

Is there any way to tag an actor or mapper with an ID? This would be helpful for debugging purposes, especially when there are multiple actors or mappers.

If you don’t mind using strings as IDs, from VTK 9.2 onwards you can use SetObjectName() and GetObjectName(). VTK will use the name when it reports an error for the object.

Sorry, my bad, I meant in vtk.js