Engagement-disengagement task

OS (Win10):
PsychoPy version (1.4):
so in the experiment

  • Each trial begins with a black screen.
  • After 500 ms, a fixation cross appears in the middle of the screen.
  • Stimuli (neutral-happy, neutral-sad, or happy-sad pairs) are presented for 3000 ms.
  • Three possible trial types:
    1. Attentional Engagement: either of white/blue square frame surrounds the emotional face paired with a neutral face. .
    2. Disengagement from Emotional Faces: The frame appears around the opposite neutral face.
    3. **Engagement-Disengagement: Happy and sad faces are paired, and the frame appears on one of the emotional faces.
  • Total of 108 trials (36 per pair type).
  • Random presentation for each participant.

I am building this experiment on builder form, I am able to build the experiment until the stimuli presentation (neutral-happy, neutral-sad, or happy-sad pairs) are presented for 3000 ms) , but after that i am getting stuck where the frame part comes. I have tried making the conditions file which includes 8 columns trial number, neutral face, emotional face, trial type, frame shape, frame position frame vertices, frame color so that a frame can be constructed but somehow I am getting stuck again and again.
Three possible trial types:

  1. Attentional Engagement: either of white/blue square frame surrounds the emotional face paired with a neutral face. .
  2. Disengagement from Emotional Faces: The frame appears around the opposite neutral face.
  3. **Engagement-Disengagement: Happy and sad faces are paired, and the frame appears on one of the emotional faces.
  • Total of 108 trials (36 per pair type).
  • Random presentation for each participant.

I am building this experiment on builder form, I am able to build the experiment until the stimuli presentation (neutral-happy, neutral-sad, or happy-sad pairs) are presented for 3000 m/s) , but after that I am getting stuck where the frame part comes. I have tried making the conditions file which includes 8 columns trial number, neutral face ,emotional face, trial type, frame shape, frame position frame vertices, frame color but I am unable to add frames and hence move forward. How can I do it on builder form.

When you have to add frames in in Builder:

  • Create Frame Component: Add a polygon for the frame, and set its properties based on your conditions file.
  • Set Frame Position: Use variables like $frame_position in the polygon’s “Position” field.
  • Control Frame Appearance: Add a code component to manage frame visibility and position. For example:
if trial_type == 'Attentional Engagement':
    frame.setAutoDraw(True)
    frame.setPos(frame_position)
    frame.setLineColor(frame_color)