Pole not functioning correctly?
Hi all,
Just wanted to see whether anyone else had been having issues with the 'pole' function in Opensesame. I am following an online tutorial to create an online visual search task (https://youtu.be/K2dcG_7Hs3Y?t=677) and everything seems to work fine until the point where he introduces the 'pole' function. In the video, when Sebastiaan runs it without the inclusion of the 'pole' in his script, his circles are off centre, but mine are not. In mine, only the square is off centre. This means, that when i include the 'pole' code in my script, the square is in the correct position, but all the circles are pushed out. How can i fix this issue? Is there a way to reference the square only, and omit the 'pole' code from affecting the circles?
Thanks
Comments
I've also noticed that the code related to the feedback doesnt work either. Is this due to changes in the software? An update, perhaps???
if var.cursor_roi != '':
search_canvas[var.cursor_roi].colour = (
'green' if var.cursor_roi == 'target' else 'red'
)
search_canvas.show()
clock.sleep(500)
Hi BossHard,
You're right, based on the docs this script shouldn't work. Circles are drawn based on the center coordinate, rectangles are drawn from the top/left point. So the pole keyword should only be necessary for the square and not for the circles. Consequently, you can't center both at the same time, using the pole argument. To be honest, I am a little confused about what the code of Opensesame was in 2018 to have worked in @sebastiaan's video.
In any case, to fix the canvas, you can adjust the script in this way:
Hope this helps,
Eduard
What is wrong about the second part? If I try it, it seems to work? Have you linked the mouse response to the sketchpad? Oh, and the keyword is
colornotcolourThanks Eduard, for both responses. I realised the issue in the second question. Unfortunately, after posting, I couldn't delete the post, so I had to leave it up. Thanks though!!!!