Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Cue Replaces Fixation Box

Hi all,

I'm using a cueing paradigm in open sesame that presents with a fixation screen of a white cross and two white boxes on a black background. For the cue, the same elements from the same boxes and cross should be presented with a circle around the box. The problem I'm having is that for whichever side the cue (a circle around the location of the white box) appears, the white box does not show for the duration of the cue presentation, and only the cue is shown.

Below is the script that I'm using currently. May of the display location parameters are variables defined elsewhere, but I know these are working because they work in other places. Any suggestions or thoughts as to why this might be occurring and how to fix it? Thanks!

set duration 100
set description "Displays stimuli"
draw rect color=white fill=0 h="[box_hw]" penwidth="[box_thick]" show_if=always w="[box_hw]" x="[box1_x]" y="[box_y]" z_index=0
draw rect color=white fill=0 h="[box_hw]" penwidth="[box_thick]" show_if=always w="[box_hw]" x="[box2_x]" y="[box_y]" z_index=0
draw line color=white penwidth="[fix_width]" show_if=always x1=0 x2="[fix_x2a]" y1=0 y2=0 z_index=0
draw line color=white penwidth="[fix_width]" show_if=always x1=0 x2="[fix_x2b]" y1=0 y2=0 z_index=0
draw line color=white penwidth="[fix_width]" show_if=always x1=0 x2=0 y1=0 y2="[fix_y2a]" z_index=0
draw line color=white penwidth="[fix_width]" show_if=always x1=0 x2=0 y1=0 y2="[fix_y2b]" z_index=0
draw circle color="[Cue_type]" fill=0 penwidth="[c_thick]" r="[radius]" show_if="[Cue_location]=0" x="[box1C_x]" y="[boxC_y]" z_index=0
draw circle color="[Cue_type]" fill=0 penwidth="[c_thick]" r="[radius]" show_if="[Cue_location]=1" x="[box2C_x]" y="[boxC_y]" z_index=0

Comments

  • My apologies, I didn't clarify - the code is the scripting view from OpenSesame and not an inline script.

    Thanks!
    Kristin

  • Hi Kristin,

    Under some backends (currently psycho and legacy) and empty circle is actually a circle filled with the background color. So if you draw a circle on top of another stimulus, it will hide that stimulus--even though the circle appears empty/ transparent.

    To resolve this, you can have the circle drawn first by increasing the z_index keyword. If you set z_index=1 for the circles, they will be drawn first.

    Cheers!
    Sebastiaan

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

Sign In or Register to comment.