Hi all,
I'm trying to make a single script to iterate through different videos, and randomly display a gray screen. I've setup a PythonSource to randomly choose a number within a range, and feed that number to either DrawVideo or DrawImage. However, once PythonSource runs once, my Repeat node seems to only repeat the DrawVideo or DrawImage instead of the entire sequence, so that only one same video plays over and over again.
I experimented with using CreateObservable for displaying my stimuli, but they wouldn't display at all. I also tried using Merge to join both branches after drawing the stimulus, and then connecting that node to Repeat, but that wouldn't work either. Lastly, I created a BehaviorSubject for my random number sampling, but adding a Repeat node to it made it so that every single time a number was sampled, the sequence would repeat indefinitely, multiple times per second.
Am I missing some built-in simpler way of presenting images and videos in the same workflow?