My work is to build a scene according to the database.
After building the scene I need to take a screenshot and save in local.
at the end of my script
it sometimes save a all grey image while sometimes it correctly save the screenshot that what I need
I think that it depends on the performance of the computer, although all the codes are ran but the rendering job had not yet finished therefore it takes the all grey image.
what should i do in order to get the proper screenshot?