script using the camera interface