Replicator texture not loaded in time


I want to randomize the texture of rect light as a projector, but I found sometimes the texture not loaded. How can I fix this ? or is there another workaround?

 with rep.trigger.on_frame(): # interval=2, rgb + ir
            with self.projector:
                rep.modify.attribute("intensity", rep.distribution.sequence(projector_intensity_list))
                 rep.distribution.sequence(["file:///home/songlin/Omniverse/material/pattern.png"] * len(rgb_pos_list)))
                rep.modify.attribute("isProjector", rep.distribution.sequence([True] * len(rgb_pos_list)))

Hi there, can you share the error you are getting, or a repro snippet for us to try out? Thanks!