Howdy, Stranger!

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

Supported by

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)

  • edited March 2

    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:

    from random import shuffle
    positions = xy_circle(n=4, rho=200)
    
    shuffle(positions)
    search_canvas = items['search_display'].canvas
    
    search_canvas['target'].x = positions[0][0] - 32
    search_canvas['target'].y = positions[0][1] - 32
    search_canvas['dist1'].x, search_canvas['dist1'].y = positions[1]
    search_canvas['dist2'].x, search_canvas['dist2'].y = positions[2]
    search_canvas['dist3'].x, search_canvas['dist3'].y = positions[3]
    

    Hope this helps,

    Eduard

    Buy Me A Coffee

  • edited March 2

    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 color not colour

    Buy Me A Coffee

  • Thanks 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!!!!

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games