Viewports

7.  Rename Viewports.txt to Viewports.py
  •  Text Editor menu >> Name box
Note:
  • You don't have to name it Viewports.py
     
  • You can leave as Viewports.txt
8.  Select a camera 
  • Select a camera
Note:
  • I'm adding the logic bricks and game properties to Cam1

  • They don't have to be attached to a camera.  They can be attached to any game object.

9.  Add an Always Sensor
  • Logic Editor >> Sensors >> Add Sensor >> Always

  • Set to run once  (True level triggering and False level triggering disabled)

Note:
  • For this tutorial, I'm using an Always sensor set to run once.

  • Viewports.py only has to be run one time to create the viewports.