def default_action(self): """ Update the texture image. """ # Grab an image from the texture if self.bge_object['capturing'] and (self._n != 0) : # Call the action of the parent class CameraClass.default_action(self) image_data = morse.core.blenderapi.cameras()[self.name()].source # Convert the Z-Buffer self.local_data['image'] = self.converter.recover(image_data) self.capturing = True if (self._n > 0): self._n -= 1 if (self._n == 0): self.completed(status.SUCCESS) else: self.capturing = False