Avatar

Howdy, Stranger!

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

Supported by

eduard

About

Username
eduard
Joined
Visits
381
Last Active
Roles
Member, Moderator
Thanked
58

Comments

  • Hi Erika, You could make the sound playback be followed by a loop which only contains a keyboard item and a logger. So every time a key is pressed, the response is logged and the keyboard waits for the next trial. The only tricky part is to exit …
  • Hi Mark, Which plugin are you using? I am not very familiar with video playback, but in theory, couldn't you just set variables in independent inline_scripts that are being called after the video finished playing, but before the loop starts agai…
  • Hi Liya, As you already discovered, variables have to exist as part of var if you want to use them in sketchpads. So, while the variable img_list cannot be used in sketchpads, the variable var.img_list can. Another potential source of the error c…
  • Hi Boo, If you already present the stimuli with an inline_script, you can also add the logging to it. You can send messages like so: exp.pygaze_eyetracker.log("Message"). Add it right before or after a canvas.show(). To make sure that you are …
  • Hi Tom, You can use these examples to test inline_scripts: https://osdoc.cogsci.nl/3.2/manual/python/canvas/#function-canvas46image40fname-centertrue-xnone-ynone-scalenone-rotationnone41 Can you share the experiment? Just to check whether it al…
  • Hi, I answered in the other discussion. Can you check whether my code helps you? Generally, it would be better to discuss in only a single thread. So, please stick to this one here. For completeness sake, I post my answer here again: Hi, …
  • Hi Hannah, Why would you want that, if I may ask? If you have a variable that codes the target location (response_required vs. response_not_required or something like this), you can put this into the run if statement of the keyboard item and r…
  • Hi, Would it be sufficient, if you just put all the files into the same folder (i.e. the file pool)? Like that, Opensesame won't complain that it can't find items, provided that they exist. However, I am surprised that OS tries to prepare items e…
  • Hi Sonia, The warning is in itself not a reason why the experiment doesn't work. It might be a problem though if you're experiment needs very precise timing. The python crash is unrelated though. Without more information about your experiment …
  • Hi Gérard, 1 On the top right of the item, you can select the script view. There you can see a few more settings that you might adapt. If that is not enough, you can easily build your own form, based on the description here : https:/…
  • Hi, It is not supported currently. The problem (I think) is that in a group, checking one option cannot be undone unless clicking on another option. Having one item checked per default means that giving no response wouldn't be possible. Does that…
  • Hi Rob, Have you followed the beginner's tutorial? Defining correct responses is part of it. Basically, in the loop table of the test phase, you can set what trial type you have (foil vs. memory) and depending on that you can set a correct_respon…
  • Hi Lea, What is the problem? Are the words not showing at all or are they presented for longer/shorter than 2 seconds? Eduard
  • Hi Mollie, Do you still need help with this question, or has it been solved in the other discussion you had with Sebastiaan? Eduard
  • Hi, First you have to define the variables before you enter the form loop. So in an line_script, do this: # ideally in the prepare phase var.totalTrials = 0 var.totalCorrect = 0 After the form you can add this code. var.totalTrials += …
  • Yeah, if you need to recode them during the experiment, you can add an inline_script after the form with some if statements like this: if var.response == 'True': var.response = 1 # alternatively define a completely new variable elif var.respo…
  • As far as I know, forms don't allow for key responses (all actions are click based), so you would have to implement this yourself, which is certainly possible, but maybe not very easy... Eduard
  • Hi, If you change the Opensesame source code, you should be able to change that message. To do so, find the file: libqtopensesame/runners/base_runner.py in the Opensesame folder. On lines 299 and 300, the pause message is defined. When messing …
  • Hi, Yes, I believe the syntax is this: =var.varA, which would then translate to [white]. Keep in mind that this only works for variables that are part of var. So, for example, var.variable would work, while variable, wouldn't. Does that make s…
  • Hi, So what is then your question? If it is about the structure, I would put the initial adapting phase before the trial sequence, so that you can easily put everything in a loop/sequence with an S and an A phase. Eduard
    in sos Comment by eduard March 1
  • Hi, I can't confirm what you say (simply because I don't know). A workaround could look like this (using inline_scripts): cv = Canvas() blank_cv = Canvas() kb = Keyboard() # define and shuffle the word list word = 'stuff' # define durations o…
  • Hi Marsh, I don't have much experience with video playback and manipulation of that. With which library are handling videos? I think cv2 can be quite powerful. I don't know whether it is possible (as I haven't tried it ever), but your problem sou…
  • Hi Cai, Maybe you can email Fabian (email above). In case you haven't already done so. Good luck, Eduard
  • Hi, For some reason, your pasted code doesn't load into Opensesame. Can you also share the experiment? Anyway, I wrote a little script that should do what you are looking for. You just have to adapt it to your needs. import random cv = Canvas…
  • Hi, You can wrap a loop around the sketchpad slide, that includes the counter of how many second are left (in addition to your actual stimulus). Make the sketchpad be presented for a little under 1 second and you should be good. Here a link to a …
  • Hi, You can wrap a loop around the sketchpad slide, that includes the counter of how many second are left (in addition to your actual stimulus). Make the sketchpad be presented for a little under 1 second and you should be good. Attached a small …
  • Hi, You can wrap a loop around the sketchpad slide, that includes the counter of how many second are left (in addition to your actual stimulus). Make the sketchpad be presented for a little under 1 second and you should be good. Attached a small …
  • Hi, You can wrap a loop around the sketchpad slide, that includes the counter of how many second are left (in addition to your actual stimulus). Make the sketchpad be presented for a little under 1 second and you should be good. Attached a small …
  • Hi, You can wrap a loop around the sketchpad slide, that includes the counter of how many second are left (in addition to your actual stimulus). Make the sketchpad be presented for a little under 1 second and you should be good. Attached a small …
  • Hi Kayla, How do you present the circle? If it is a sketchpad, you can add another sketchpad to the sequence, that is identical to the circle, but includes the text message that you envision. The important details are that you include this sketch…