← Blender.Today
  • Published 2 Mar 2023

Save Render image with mesh name

Hi I am having an issue I have multiple objects(meshes) with different names and I want to save my renders according to the object name for example, The mesh name is "cube123" the render should save as "cube123.jpg"

Note: I have around 100s objects

Please Help

mohammedahmed
2 Mar 2023

2 Comments

pablovazquez

This is fairly simple to do with Python and Blender's API. I think it would be a great opportunity for you to learn the basics, if you are interested in it. It's a huge time saver to learn a little bit of Python.

The Python code could do something like (pseudo code):

for object in selected_objects:
  scene.render.filepath = "/user/folder/{0}.jpg" % object.name
  bpy.ops.render.render(write_still=True)

I guess you also need to move or switch the camera for each object, which you can do in that loop.

Otherwise you can ask for help on Blender Stack Exchange or hire someone to do it for you.

1
mohammedahmed Author

thanks, It solved the problem