psychopy.org | Reference | Downloads | Github

How to set opacity using operations for condition file

Setup:
Win10, Standalone PsychoPy2 version1.92

Hi there, I am varying opacity for each frame for my stimuli. I currently used operation $((frameN % 20) <= 10) for opacity in the builder. This works fine. However, I want to vary the timing for each repeat. I set the same oeprations in the condition file but it doesn’t work. Does anyone know how to vary opacity for each repeat plus each frame?

Please specify how you want to vary it. But in essence, you would just incorporate a variable from the conditions file into your expression above (e.g. presumably putting a variable name in place of 20.