Brush Respose Data

OS Mac OS Sierra 10.12.6
PsychoPy3 Experiment Builder v2021.1.2
Python 3.6.8

What are you trying to achieve?:
Trying to give a sound stimuli and take a response with brush tool

What did you try to make it work?:
Trying to find a solution on this forum , tried to understand if I need to convert any data which is not in an image format to an image but also can not find an answer to that, also converted it to a python file and tried to read to find something about saving that data but could not understand by that way eigther…

What specifically went wrong when you tried that?:
The experiment works but Can not see any brush response data saved anywhere

6.3845 WARNING Monitor specification not found. Creating a temporary one…
2021-03-15 23:39:37.951 python[5853:79969] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/b3/s7y853057yzbys5whx9gvyyr0000gn/T/org.opensciencetools.psychopy.savedState

Experiment ended.

this appears on the console

I did search the path on the error and there are two .data and one .plist files but still can not find a solution about how to see brush component saved data

The Brush component is a tricky one as the data you’re likely to want is very much dependent on your experiment design. During the experiment, you can access the position of the Brush via:

myBrush.pointer.pos

to answer the question “is the Brush currently on this image/shape component?” you would do this:

myShape.contains(myBrush.pointer)

or get an array of all positions the brush has drawn in via:

myBrush.brushPos

and all of these you could use trials.addData to save them to the datafile.

but if you wanted to actually see the response, the best way is to capture the window as an image at the end of the routine:

win.saveMovieFrames('data/myFilename.png')
1 Like