ROP render event callbacks let you run code when a render events occur on an individual ROP node instance. See hou.RopNode.addRenderEventCallback.
The event callback is called with the hou.RopNode that produced the event as the first argument, an enum value from this enum as the second argument, and the time value that event occured as the last argument.
Values ¶
hou.ropRenderEventType.PreRender
Runs exactly once, before the ROP node begins rendering.
hou.ropRenderEventType.PreFrame
Runs before each frame is rendered.
hou.ropRenderEventType.PostFrame
Runs after each frame finishes rendering.
hou.ropRenderEventType.PostWrite
Runs after output files for a frame have been written to disk. This is primarly used with nodes like the /nodes/rop/geometry.html, which write output files in the background.
hou.ropRenderEventType.PostRender
Runs exactly once, after the ROP has finished rendering.