code: def save_camera_position(self):
          
          self.saved_camera_positions.append(self.camera_position)
          ncam = len(self.saved_camera_positions)
          camera_position = self.camera_position[:]  # py2.7 copy compatibility
  
          def load_camera_position():
              self.camera_position = camera_position
  
          self.saved_camera_menu.addAction('Camera Position %2d' % ncam,
                                           load_camera_position)
docs: Saves camera position to saved camera menu for recall