Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Generated by OpenSesame 2.8.1 (Gutsy Gibson)
- # Mon Aug 29 11:00:02 2016 (nt)
- # <http://www.cogsci.nl/opensesame>
- set mouse_backend "psycho"
- set subject_parity "even"
- set height "768"
- set font_family "mono"
- set font_italic "no"
- set synth_backend "legacy"
- set title "New experiment"
- set coordinates "relative"
- set start "experiment"
- set sampler_backend "legacy"
- set transparent_variables "no"
- set foreground "white"
- set font_bold "no"
- set description "Default description"
- set background "black"
- set font_size "18"
- set keyboard_backend "psycho"
- set canvas_backend "psycho"
- set compensation "0"
- set bidi "no"
- set subject_nr "0"
- set width "1024"
- define loop Choice
- set repeat "0.1"
- set description "Repeatedly runs another item"
- set item "Trial"
- set break_if "never"
- set column_order "PicName"
- set cycles "44"
- set order "random"
- setcycle 0 PicName "anger1.jpg"
- setcycle 1 PicName "anger2.jpg"
- setcycle 2 PicName "anger3.jpg"
- setcycle 3 PicName "anger4.jpg"
- setcycle 4 PicName "anger5.jpg"
- setcycle 5 PicName "anger6.jpg"
- setcycle 6 PicName "anger7.jpg"
- setcycle 7 PicName "disgust1.jpg"
- setcycle 8 PicName "disgust2.jpg"
- setcycle 9 PicName "disgust3.jpg"
- setcycle 10 PicName "disgust4.jpg"
- setcycle 11 PicName "disgust5.jpg"
- setcycle 12 PicName "fear1.jpg"
- setcycle 13 PicName "fear2.jpg"
- setcycle 14 PicName "fear3.jpg"
- setcycle 15 PicName "fear4.jpg"
- setcycle 16 PicName "fear5.jpg"
- setcycle 17 PicName "fear6.jpg"
- setcycle 18 PicName "fear7.jpg"
- setcycle 19 PicName "happy1.jpg"
- setcycle 20 PicName "happy2.jpg"
- setcycle 21 PicName "happy3.jpg"
- setcycle 22 PicName "happy4.jpg"
- setcycle 23 PicName "happy5.jpg"
- setcycle 24 PicName "happy6.jpg"
- setcycle 25 PicName "neutral1.jpg"
- setcycle 26 PicName "neutral2.jpg"
- setcycle 27 PicName "neutral3.jpg"
- setcycle 28 PicName "neutral4.jpg"
- setcycle 29 PicName "sad1.jpg"
- setcycle 30 PicName "sad2.jpg"
- setcycle 31 PicName "sad3.jpg"
- setcycle 32 PicName "sad4.jpg"
- setcycle 33 PicName "sad5.jpg"
- setcycle 34 PicName "sad6.jpg"
- setcycle 35 PicName "sad7.jpg"
- setcycle 36 PicName "suprised1.jpg"
- setcycle 37 PicName "suprised2.jpg"
- setcycle 38 PicName "suprised3.jpg"
- setcycle 39 PicName "suprised4.jpg"
- setcycle 40 PicName "suprised5.jpg"
- setcycle 41 PicName "suprised6.jpg"
- setcycle 42 PicName "suprised7.jpg"
- setcycle 43 PicName "suprised8.jpg"
- run Trial
- define sequence EmotionAnalysisPilot
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run welcome "always"
- run Choice "always"
- run Thanks "always"
- define sketchpad Thanks
- set duration "keypress"
- set description "Displays stimuli"
- draw textline 0 0 "Thank you for your participaion and valuable feedback" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always" html="yes"
- define sequence Trial
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run sketchpad "always"
- run inline_script "always"
- run advanced_delay "always"
- run form_multiple_choice "always"
- run slider "always"
- run logger "always"
- define logger _logger
- set ignore_missing "no"
- set description "Logs experimental data"
- set auto_log "no"
- set use_quotes "no"
- log "form_var"
- define advanced_delay advanced_delay
- set duration "500"
- set jitter "0"
- set description "Waits for a specified duration"
- set jitter_mode "Uniform"
- define sequence experiment
- run EmotionAnalysisPilot "always"
- define feedback feedback
- define form_multiple_choice form_multiple_choice
- set allow_multiple "no"
- set description "A simple multiple choice item"
- set question "What does this image make you feel?"
- set button_text "Ok"
- set advance_immediately "yes"
- set form_title "Question"
- set form_var "chosen"
- __options__
- Happy
- Angry
- Suprised
- Sad
- Disgusted
- Neutral
- Scared
- __end__
- define inline_script inline_script
- ___run__
- from datetime import datetime
- my_sysytem_time =datetime.now().strftime('%d-%m-%y %H:%M:%f')
- __end__
- set _prepare ""
- set description "Executes Python code"
- define logger logger
- set ignore_missing "yes"
- set description "Logs experimental data"
- set auto_log "no"
- set use_quotes "yes"
- log "response"
- log "time_Choice"
- log "PicName"
- log "chosen"
- log "my_system_time"
- define sketchpad sketchpad
- set duration "0"
- set description "Displays stimuli"
- draw image 0 0 "[PicName]" scale=1 center=1 show_if="always"
- define slider slider
- set bg_colour "black"
- set imgname "[PicName]"
- set fg_colour "white"
- set sf_colour "red"
- set leftlabel "Very Low"
- set show_img "yes"
- set question "To what extent can you relate the image to the emotion?"
- set slider_h "10"
- set slider_w "400"
- set rightlabel "Very High"
- set txt_colour "white"
- set accept_text "Click to accept"
- set description "Presents a question and slider"
- define sketchpad welcome
- set duration "keypress"
- set start_response_interval "no"
- set description "Displays stimuli"
- draw textline 0 -80 "Welcome to the Study" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always" html="yes"
- draw textline 0 -45 "You will be shown several pictures one after the other" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always" html="yes"
- draw textline 0 -10 "Every picture will be followed by a Multiple Choice Question and an Intensity Rating Scale" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always" html="yes"
- draw textline 0 30 "You will be using the mouse to choose your response and rate the intensity scale." center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always" html="yes"
- draw textline 0 64 "Press spacebar to proceed" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always" html="yes"
Add Comment
Please, Sign In to add comment