Reputation: 13
I want to perform an action on each frame when running a simulation on omniverse isaac sim. Lets take as exemple that I want to print 1 at each frame. So when I run this code, I expect the output to have ten 1s.
Instead, I'm getting only the first and then a "resetting simulation timeline" message.
import omni.replicator.core as rep
with rep.new)layer ():
with rep.trigger.on_frame (10):
print (1)
rep.orchestrator.run()
Upvotes: 0
Views: 28