renderID to geometry name

Question:
What is the easiest way to map a renderID back to the geometry that generated it ? Preferably using the Max python API, maxscript or anything non UI.

Context:
Working on image semantic segmentation. Using the vrayRenderID render Element. I want to use the renderID to identify certain “multi-part/geometry” assets. Using 3DsMax & vray in batch mode.

Note:
The VRayRenderID parameter allows for a log / xml file to be generated that contains this information, but it doesn’t seem to work in batch mode.

Thanks!

Hello,

Sorry for the long delayed reply.
If you switch the VRayRenderID render element to output Node handles instead of render IDs - then you can use for example
node =maxOps.getNodeByHandle <number>

to find which is the Max node that generated the geometry.

Best regards,
Yavor