how can I Render and auto save Multiple AO maps of multiple objects from one file

Hello all, I am trying to render AO maps of multiple objects from one file, and I want to save all of them separately. But when I am selecting multiple objects to render and hit key for AO map, blender is overlapping both textures in one image. Please tell me if there is any trick without script or with script. I am using Blender version 2.77. Thank you

You plan on using different image textures for each of these objects, correct? Have you tried baking the objects one at a time?

Hello Austin, yes I have tried to bake one object at a time, but I have so many objects to render in my scene, that’s why I am looking for an option to bake all objects automatically one by one and auto save on desired location, Like 3DS MAX do. Please help me out. thank you.

Sorry, I was very busy this week. I’m not sure what you are having trouble with, so I will just tell you how I made it work.

I setup a scene with four cubes. I created 4 new images and saved them to my drive. Each cube was UV unwrapped and was assigned a material that uses an image for the diffuse shader’s color. I used a different image for each cube/material.
So, one cube has the Mat_00 material which uses the AO_00.png image for its diffuse color. Another cube has the Mat_01 material which uses the AO_01.png image. I setup all four cubes in this way.

I selected all the cubes. I set my bake mode to Ambient Occlusion. Then, I baked. I could see it looping through and baking each texture inside the UV/Image viewer. Once it finished, in the UV/Image window, I selected Image > Save All Images. This saved all of my images except for one, AO_00.png. I had to save that image manually for some reason.

I have attached a zip with the blend file and the four images. I used Blender 2.77.

Attachments