LeeB_86
About
- Username
- LeeB_86
- Joined
- Visits
- 82
- Last Active
- Roles
- Member
Comments
-
Create a feedback loop with variable 'countdown' (or whatever!). Insert the numbers 1 thru 30 into 'countdown'. Create a sketchpad item within the fb loop and insert your variable using the square brackets method (I.e. ['countdown']). That should do…
-
I used Paint.Net to make the stripe.png files (a different version for different sessions - I don't need participants practicing now...) and it works like a charm. Very many thanks, that has made me a happy chap! Best, Lee
-
I've incorporated the script snippet into my experiment as: # Draw vertical stripestrial_display.set_penwidth(10)for x in range(64, 2*trial_display.xcenter(), 30): trial_display.line(x, 256, x, 512, color='white') This covers the area I require…
-
Sebastiaan, That looks similar to a Bresenham algorithm (I think!) which I saw somewhere in my trying-to-find-a-solution research. I'll give it a try and let you know what happens. As for the prepare-run, I presume then that if I move all of my st…
-
Hmmm, this is actually related to a previous problem (http://forum.cogsci.nl/index.php?p=/discussion/619/solved-changing-polygon-linestyle#Item_5), but so far I haven't been able to create the workaround you suggested and make it work the way I need…
-
Right, I have finally sorted this out... yay! Thanks for the pointers, it is now - solved! Best, Lee
-
Hello again, I'm having a similar issue to the one above (hence resurrecting the post), I'm trying to copy a sketchpad item ('stripes') into an inline script item ('ongoing-script') which already contains a canvas ('trial_display'). I need the ske…
-
That does make sense. I've placed it at the end of the keyboard response script and it seems to work. Still not collecting responses though... I suspect that is more a fault in the way I've connected/not connected the keyboard script into the rest o…
-
Okay, that makes sense! Best, Lee
-
Sebastiaan, Thanks for the thoughts - I had hoped that I could use matplotlib.lines and just use the 'set_linestyle' in a similar fashion to the 'set_penwidth' currently available in the canvas - after all, the canvas is surely just a big plotting …
-
(Quote) ... I guess I'm the only one making goofy mistakes then! :D Hope it works out, back-end issues are beyond my knowledge... Lee
-
Just completed it. I have also introduced OS at my uni, the department loves the lack of a price tag! Online version would be really useful, hope it gets made...
-
Have you set the experiment resolution (on the 'General Overview') to match the screen you are using? I found that to be a problem in a recent experiment of mine when I switched to using a different screen. Best, Lee
-
Sorry to drag an old post up, but it is a relevant addition (I think!). Regarding the experiment setup below: (Image) My keyboard response isn't collecting responses. Whilst I can see from this thread that this has been a problem in the past, it…
-
That helps a lot... I thought the penwidth function was only canvas-wide, I didn't realise it could be used repeatedly for different objects. Any ideas about changing line style in a similar fashion? Thanks again! Lee
-
It was helpful for the adaptation below: match = self.get('match')# Image 1:image1 = np.array(points1)[image1_indices]# Image 2 (matching):image2 = np.array(points2)[image1_indices] # Image 2 (non-matching):image3 = np.array(points2)[image2_indices…
-
Thanks! It worked in terms of creating matching pairs of polygons... One question: Can I create a variable that reflects the number of cycles of my block_loop? I'm trying to make the 50 cycles be a combination of 25 presentations of matching:non-ma…
-
Okay that makes sense. The script is supposed to generate two images side by side. 50 presentations is ensured by having the block loop set at 50 cycles. 25 pairs of images have to be non-matching; easy enough, just pull necessary numbers of random…
-
That's a fair comment, I'm not sure how you would get dual mouse input... I can see having 'my_mouse1' and 'my_mouse2', I see the problem as getting OS to recognise the two peripherals...
-
...I gave it a go anyway: # For image 2: # Matching:index1 = img1.index(len(points1)) # Index 'points1' as sampled for 'img1'...index2 = points2[index1]m_image2 = trial_display.polygon(index2) Returned an error saying: ValueError: 24 is not in …
-
Does it have to be a mouse? Could you assign them their own key and then create a script that accepts independent keypresses?
-
I've just seen the flaw in my own logic... If I could index 'img1' for the sampled values of 'points1', they would be part of a new list (at least I think they would) and an index of 'points2' would not return the corresponding points correctly... …
-
Lotje, Thanks for the reply! It sort of helps, gives me pause for thought, but if I'm drawing random 3,4,6 and 8 sided shapes ('nss') then the script has to be made to figure out 'l1' all by its lonesome before comparing to 'l2'. Would it be possi…
-
Being able to run a particular section of an experiment would save a lot of time (i.e. not having to run 5/6 blocks just to test block 4).
-
Never celebrate too soon... Having a little issue organising matching pairs in the script. (sorry for the giant script copy!): # Create the image generating script.# Import random and canvas:import randomfrom openexp.canvas import canvastrial_displ…
-
I have SO sorted it, woohoo! Also just remembered that programming graphics work from 'upside down' axes so once I had transposed all the coordinates (not needing negatives after all) the generating images just popped onto screen... It is probable …
-
Sebastiaan, Thanks - I had thought that the canvas/sketchpad were somehow linked, misinterpretation on my part. Let's see if I can sort it out now.,... Lee
-
Sebastiaan, I've changed the script as per your suggestions and the experiment now runs... however the sketchpad merely presents 'none' 'none' instead of generating random shapes as I thought it would. I presume there is some problem with my logic…
-
Sebastiaan, That's exactly what I've done, something is still amiss... pastebin here (Image) Coordinate files on Dropbox: image1_values here image2 values here I can see what the error is referring to in the debug, but I'm not sure why as I…
-
I agree, Windows 8 runs OS just fine! Some issue using the runtime minimal GUI version though....