I want to create/delete a series of objects at render time. Not at the beginning/end of rendering, but at the beginning/end of each individual frame.
I have a SimpleObject2 that I tried registering with a NOTIFY_RENDER_PREEVAL callback. However, if I create objects in the resulting callback function, they don’t appear in the render…my guess is because by the time that callback is called for my SimpleObject2, all scene objects have already been iterated and so any new objects are skipped.
I noticed that if I register the same callback with the maxscript “callbacks.addscript”, the objects created in the callback function do appear in the render, probably because the maxscript callbacks object is processed prior to the iteration of all scene nodes.
Is there a straight-forward way to create objects in a node-specific callback at rendertime? Or do I have to do some kind of workaround, like calling my node’s callback function from a maxscript-created callback?