Howdy, Stranger!

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

Supported by

[open] Stimuli randomization & rating scale plugin design

edited September 2015 in OpenSesame

Hi all.

New to Open Sesame, solid experience with computers and all kinds of software, but not with codes/scripts.

I'm making a simple experiment in which 32 short video clips are played. After each clip, the participant is asked to provide a response on a Likert scale. The design is within-subjects, so I need to randomize the order of the stimuli (VLC items) for each participant (just the stimuli in the sequence, not the independent variables as in a loop). Then I would like OS to log all responses (where the logging process would of course "ignore" the randomization, i.e. give me a log file in which the results are correctly assigned to appropriate stimuli - say, according to the number or name of the video clip).

Any easy solution for this?

Also, I've downloaded the rating scale plugin, but it looks like its default (or sole?) design consists of little stars changing color from white to yellow when selected. Any chance this could be changed into something more "traditional" (numbers, custom labels...)?

I suspect some scripting is required for both these tasks. Any hints appreciated.

Thanks so much for the great work on this software.
Mihailo

Comments

  • edited 12:46AM

    Hi Mihailo,

    You can use so-called forms to collect your responses. Check out this page: http://osdoc.cogsci.nl/forms/ for detailed instructions (and the rating scale functions in particular).

    Previous questions about the likert scale:
    http://www.cogsci.nl/forum/index.php?p=/discussion/345/solved-likert-scale-trouble/p1

    The general idea for your experiment will be to have a sequence item in a loop item and in the loop indicate to run the sequence 32 times. In the sequence you'll have a video player item, a form that collects your response, and a logger to log the response to a save file.
    Before the loop, you want to create a list with all of your video files (which are also placed in the file pool) in the prepare phase of an inline_script, e.g.: video_list = ['video1.mp4', 'video2.mp4', 'video3.mp4']. And you also want to give that list a random shuffle:

      import random
      video_list = ['video1.mp4', 'video2.mp4', 'video3.mp4']
      random.shuffle('video_list')
    

    In the sequence, you place another inline script that will pick the video for that iteration:

      video = video_list.pop(0) # takes the first element from our shuffled list.
      exp.set('video', video) # makes item available outside of inline_script
    

    In the media player item, you simply insert [video] in the 'video file' box.

    Hope this helps.

    Cheers,

    Josh

  • edited 12:46AM

    Dear Josh,
    Thank you very much for your help.
    It has assisted me a lot in terms of the "logic" of the design and opened my eyes with regard to "how I should think" with Open Sesame.
    Alas, though, with the video list arranged as above, Open Sesame gives me a "Type Error" (str object does not support assignment type).
    I'm probably doing something wrong and will keep on trying.
    Thanks again for all the effort.
    Mihailo

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