How to modify materials through a script to simulate spray painting effects

Currently, I’ve achieved the following effect by referencing Projection Materials tutorial in Issac Sim.
QQ录屏20241211155147 00_00_00-00_00_30
My idea is that if the material image of each simulation step can be processed through simple image processing, such as averaging each channel, a simple spray painting effect can be achieved. However, I don’t know how to process mdl materials through a script and output a mappable PNG image for each frame. Can the OmniPBR class achieve this effect ?If there is a better way, please let me know.