kezzo2002
About
- Username
- kezzo2002
- Joined
- Visits
- 5
- Last Active
- Roles
- Member
Comments
-
@Roelof - I've actually had a bit of trouble implementing this. The bit in spyder works fine (although seems to create twice as many numbers as specified in nr_subjects): `import random nr_subjects = 100 batch_nr = 10 total = [] for i in range(0,nr…
-
OK - that last bit went a bit beyond me - but incase this code is of use to others - this is what I used to implement the Affective Slider (Betella et al., 2016)... In Inline Script: ` from libopensesame.widgets._widget import widget from libopens…
-
@sebastiaan OK - so who thought drawing a curved line would be so hard - but its bamboozling me! Using some pythag to help me work out co-ordinates relative to the size of the widget I tried something like this: from cmath import sqrt r=…
-
Thanks @sebastiaan I will have a go with that. For a curve using canvas.polygon - does that mean I just need to put in lots and lots of points to get something resembling a circle?
-
Hi @sebastiaan, so after a lot of trial and error I'm really close - but having a couple of issues I can't work out how to sort. My Inline Script is as follows: from libopensesame.widgets._widget import widgetfrom libopensesame import widgetsfrom o…
-
So installing the media_player_vlc plugin has done the trick - video plays beautifully. However, now when I run my experiment, after the video plays the experiment aborts with an error saying the variable total_response_time does not exist. Any sugg…
-
Hi @sebastiaan, this works great now. Just a couple of questions for further tweaks: * How would I amend the code to have a horizontal slider if needed? * Is it possible to amend the slider from being a block that fills to something like a line w…
-
Thanks for the reply Eduard. I'm currently using the inbuilt media_player_mpy - but that is a good idea - I will download and try the vlc one and the openCV one as suggested on that link and see if they resolve the issue...
-
Anyone?
-
This is great thank you! I had added a logger previously but for some reason it wasn't picking these up - so I deleted it, put a new one in and it seems to be working now!
-
This works beautifully! Thanks ever so much. A final side note - if I wanted a frame/box round the slider area (so min and max were clearer) - is the best thing to add into the above code instructions to draw a box, or to add an image of a box to th…
-
Ah! I see.... Thank you! With a bit of tinkering to make it look pretty this will work a treat.... (I will post the code when I have done so in case of use to others!) One thing though... on a touchscreen this doesn't truly slide when you move your…
-
Hi Sebastiaan, Thank you for this. This looks like a much better solution moving forward - however when I paste the code above into the prepare section (or the run section) of an inline script at the beginning of my experiment, and then later on ad…
-
Thats great - thanks Roelof!
-
Hi Roelof, Thanks for your response, you have come at the problem in a slightly different way to how I had thought about it. Yours is much more elegant I think. Really helpful. I am new to open sesame and doing inline scripts so bear with me. So j…