Table of Contents


When showing the stl parts to a project it is important to give an idea, which part is which.
This is an example render setup with four cameras. In this post I will show how to render each camera and combine the resulting images.

There might be better ways of doing this inside Blender. If you know how, please point me in the right direction. In this post I describe how I achieved this with scripting inside Blender and an additional library.


If you are using Blender with a bundled Python, use the next section as a guide, otherwise you should be able to use pip directily.

Locate Blenders Bundled Python

In the Blender Python Consolerun

>>> import sys
>>> sys.exec_prefix

It will show you where the bundled Python is on your disk:


Then go to this folder with a shell an cd into bin, and then run (as taken from :

curl -o

Which should output something like this:

Collecting pip
  Downloading (1.4MB)
     |████████████████████████████████| 1.4MB 3.9MB/s
Collecting wheel
Installing collected packages: pip, wheel
  Found existing installation: pip 10.0.1
    Uninstalling pip-10.0.1:
      Successfully uninstalled pip-10.0.1
Successfully installed pip-19.2.3 wheel-0.33.6

Once this worked as expected, you can run the following to install Pillow

./pip install Pillow

Which should output something like this:

 Collecting Pillow
 Using cached
Installing collected packages: Pillow
Successfully installed Pillow-6.1.0

Setting up the cameras

Add four cameras with the following names (the script is hard coded to use these, you can change this to your requirements):

  • front
  • left
  • right
  • top

The Magic

Import an STL file, move it into place and select it.

Then, paste the following script into a new file inside blenders text editor view and hit Run Script.

It should render your object from all four cameras and save each, as well as a combined image.

import bpy
import sys
from PIL import Image

def renderAndSaveCamera ( cameraName, fileName): =[cameraName]
    bpy.context.scene.render.filepath = './' + fileName + '-' + cameraName
    bpy.ops.render.render(use_viewport=False, write_still=True)

if len(bpy.context.selected_objects) == 1:

    print('creating render for ' +


    # combine cameras and save

    combinedImage ='RGB', (bpy.context.scene.render.resolution_x*2,bpy.context.scene.render.resolution_y*2))'./' + + '-front.png')
    combinedImage.paste(im, (0,0))'./' + + '-right.png')
    combinedImage.paste(im, (0,bpy.context.scene.render.resolution_y))'./' + + '-left.png')
    combinedImage.paste(im, (bpy.context.scene.render.resolution_x,0))'./' + + '-top.png')
    combinedImage.paste(im, (bpy.context.scene.render.resolution_x,bpy.context.scene.render.resolution_y))'./' + + '-render.png')
    print('Please select a single object')


For true isomorphic camera settings in blender, see