[Closed] [HELP] Snapshot() fail in render
Im having a problem when rendering a script I wrote.
The script creates a series of copies of an existing mesh using the snapshot command.
The scene executes fine in the viewport but then when I render it doesnt show anything (but it does in the viewport).
Does someone has an idea why the meshes created with the snapshot command are not rendered?
Thanks
Sounds more like a rendering issue. Are you sure your rendering the right viewport? Are there lights in the scene? Check the render’s alpha channel to see if rendered the objects, but just showing black in the RGB channels.
what event do you use to create snapshots?
I have a global array created at an “on Init” method.
Then on an script to be executed at the Final Step I go through all the particles in the current state and create a snapshot for each of them. Each snapshot is assigned an entry in the global array. In this way I can check if a particle has already been coupled with a mesh or not and delete the array with all the meshes when I rewind the playback.
It cannot be a rendering issue as I render fine if I set the renderer to only compute one frame.
Thanks,