Edwin
About
- Username
- Edwin
- Joined
- Visits
- 95
- Last Active
- Roles
- Member, Moderator
Comments
-
Hi guys, Actually, you could do this in a serial fashion, rather than using the more complicated parallel threading approach. Place the following code in an inline_script placed directly behind the sketchpad that you use to present your stimulus, a…
-
Excellent! Will mark this as solved :)
-
Hi Daniel, The way your form inline_scripts currently look is probably as follows: from libopensesame import widgets# form preparation for three questionsform._exec() You could change this to: from libopensesame import widgets# preset some varia…
-
Hi Ambra, Do you mean that the script editor tells you that the variables are undefined, or does an actual error occur? In principle, the code should run as long as you use the psycho back-end, regardless of the warning messages in the inline_scrip…
-
Hi Christophe, As it is now, the image_button only supports a single image at a time, I'm afraid. You could go for either of two approaches: 1) Merge the images. You could do this beforehand, but this would be feasible only if you have a limited n…
-
I think you might have missed my point. You don't know the quality of your data beforehand, but this does have a potentially large effect on your AOI analysis. Therefore it would be wiser to use an offline analysis. Obviously, a custom analysis scri…
-
Thanks for the heads-up, we'll mark this as solved!
-
A general note up front: pyzmq is not packaged with the standalone version of OpenSesame. I assume this is because it gives some trouble when you try to package it using py2exe (although there is a workaround, to still include it), but @sebastiaan s…
-
Hi, Are you using the gaze behaviour (i.e. the number of fixations and dwell time per area of interest) online? That is: do you adept your experiment based on where participants are looking? If so, you might want to check out the AOI plug-in (see h…
-
This is a problem with the Expyriment version packaged with that particular version of OpenSesame Portable. There are two options: 1) Switch to a different back-end (legacy and psycho should work fine). 2) Switch to a newer edition of the portable…
-
Ah, I see what you mean. You are definitely right: Append existing item produces a copy that is linked to the original; change one and you change the other too. I now understand that you would like to see the option to copy an item without this link…
-
Turns out the solution is surprisingly simple! The timing of the second stimulus isn't very different from the first, actually. The problem you face lies in the fact that when SOA < 1, the beep is presented first and the dot is displayed second, …
-
Yes, there is. This will require some manual bookkeeping, but we will rely on some variables OpenSesame creates and updates behind the screens: # check if the response is the same as correct response 1if self.get("response") == self.get(&…
-
Hi, You could try the second option: add the TTF to your file pool (e.g. "amazingfont.ttf"), and refer to this font in your sketchpads using a line like the following draw textline 0.0 0.0 "This will be inconsolata" font_family…
-
Hi, Could you make sure that there is one (and only one!) correct response listed in the keyboard_response item? If you require multiple responses to be correct, please use the following code in the Run phase of an inline_script placed directly af…
-
Hi, Did you take a look at the slider plug-in? This provides exactly the kind of functionality you are talking about. To install the plug-in, simply click on the link above, then click on the Download ZIP button. After downloading, unzip the archi…
-
Hi, It seems OpenSesame still can't find the file. One thing that comes to mind, is using the neat way of getting file paths, using the function that @sebastiaan had already mentioned: import pygame# get the file name, e.g. u'52.png'filename = u'%…
-
Hi, Please read this passage on fonts from the Documentation Page. Basically, the font should be available to select through the font selection in the experiment overview (the blue icon on the very top of the overview). If this is not the case, ad…
-
FYI: Copying existing items is already possible, by using a sequence's Append existing item button. This doesn't mean one could not think of a more straightforward way of doing this (e.g. by right-clicking on an item in the overview, or by allowing…
-
Hi, The variable you are referring to in the skecthpad is a Python variable that cannot be referred to within the OpenSesame syntax. What you could do, is add a variable to your loop called picnr. The value should be a numbers from 0 to 60. Next, …
-
The correct code would actually be: import pygamepath = u'%s.png' % (self.get('ID'))pygame.image.load(path) The u should be before the quotation marks if you use it to denote a unicode string. Currently, your image name is defined as u'52.png' rat…
-
Very good initiative! Some suggestions: Variable Spaces I think the issue with the variable definition is that it's unclear how OpenSesame handles different variables. As I see it, we have two variable workspaces: one for the GUI (let's call these…
-
To add to what Eoin says: it sounds like you might be initializing a new canvas object every time the stick figure moves (or with every new trial). With animated stimuli and a lot of trials, the trick is to create a single sketchpad at the start of …
-
Hi guys, As @sebastiaan says: we have Tobii support, but it's still a bit experimental. This means that PyGaze will likely be able to communicate with your device, and that things should run smoothly, but you might encounter some unforeseen hiccups…
-
Awesome! I'm glad you figured it out :) Will mark this one as solved! By the way: rather than the multiple options as the correct response in a keyboard_response item, you could have used the inline_script approach I describe in one of my previous …
-
Hi Raúl, Have you tried using the exact same solution? This should do the trick. Good luck!
-
Hi Daan, As you note, you could simply use a different keyboard_response for every trial type. If you want to handle responses yourself, I would suggest using a single inline_script, placed directly after the keyboard_response: # preset correct to…
-
Hi Mona, Some bad news, I'm afraid: I don't think anyone has used such a setup before, and I don't see a readymade solution. It sounds like it's configured via ethernet rather than via the parallel port. In any way, it's not going to be possible t…
-
Glad that helped! I'm not quite sure what your pseudocode should do, but if you are trying to implement the 80% OT, 10% DT and 10% AT design, I wouldn't go for a completely random approach. That is: it might be better to randomize the order, but to …
-
You might want to specify what the problems are exactly. It sounds like you have a few 'keypress' durations specified in your experiment where you expected to have durations in (0) milliseconds (but forgot to add this?). Those zip by in a quickrun, …