Selecting stimuli based off outer loop number

Hello

I am designing a task that will present 10 pictures consecutively followed by a distracting video. Both the picture and video presentations have their own loops nested in the test block loop:

There are 3 possible video choices:

I have some code ensuring that the video loop only plays one video rather than all 3. My participants will be completing 3 blocks of the test trials, and I am wanting to ensure all 3 videos are played, so one per iteration.

I tried moving the vid_stim excel file to the outer “OMT_Test_Trial” loop, but that gave the following message:

File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\movies\players\ffpyplayer_player.py”, line 637, in start
self._handle = MediaPlayer(self._filename, ff_opts=self._lastPlayerOpts)
File “ffpyplayer\player\player.pyx”, line 409, in ffpyplayer.player.player.MediaPlayer.cinit
TypeError: expected bytes, NoneType found
################# Experiment ended with exit code 1 [pid:4492] #################