Multiple webcam files within a trial

Greetings all!

I would like to use the web cam to generate multiple video files. It does fine as long as you access “cam” once each trial. Trouble is that my trials include several parts and I’d like a separate video cam file for each. For example:

Start…training trials loop with separate video files… test trials loop with separate video…end

I’ve tried dummy coding separate n=1 loops thinking that might close the file before the next but that did not do the trick.

Thanks for your help!

Hi Tyler,

did you have a look into the code exported by the builder (i.e., the .py-file) when using a camera component? Maybe you can identify which code snippets start and stop a camera and reuse them for your own purposes.


Thanks (again) Adrian! That’s a great idea and I will give it a try!