PsychoPy newbie here. I have a task where in one trial, participants have the option (but not the requirement) of switching an image to a different image. No matter what they choose to do, they will look at something for a total of 6 seconds. So if they don’t press spacebar they view image #1 for 6 seconds. If they press spacebar after 2 seconds, they will spend those previous 2 seconds looking at image #1 and the next 4 seconds viewing image #2.
My question is: How do I set the duration of image #2 to be the remainder of their 6 second viewing period?