ashleym
|
|
Group: Forum Members
Posts: 31,
Visits: 119
|
+x+x+x+x+x+x+x+xHi! I hope all is well. I am here with a follow-up question about this task :) Some of the images and some of the messages I am using are vertical versus horizontal and I am wondering if there is a simple enough way to link the item lists of the various stimuli so that in Trial c, where participants view their created combinations of images and messages, they could be linked such that if participants selected a vertical image, the vertical version of the message would be displayed on top of it in Trial c (I have vertical versions and horizontal versions created for all message overlays). Example Block: Trial a: Participant views images RM01, RL14, UM22, UL39 Trial b: Participant views messages MAX19, MIN28 Trial c: Participant sees the horizontal version of message MIN28 overlaid on the image *because* they chose image UM22 (which happens to be horizontal) VERSUS participant sees the vertical version of message MIN28 overlaid because they chose image RM01 (which is vertical). I am thinking this might be pretty complicated, but if there is somewhere I can be directed to help me figure it out, that would be amazing! Please let me know if this isn't exactly clear. Thank you in advance for any help!!! Ashley I cannot possibly answer this without the full code as well as all images, etc, the script requires to run. I'm sorry about that! I didn't realize. I will organize and post the code and stimuli later. I do have another (quick?) question though, if it is something that can be answered easily/without code. I changed the script a bit so that two of the image categories are showing on one page (instead of all four) and so that presentation of the two image trials are randomized. I did this using lists and a master list, and all of that works great. One thing I cannot figure out how to do is to randomize the presentation order of the image and message trials (we decided we don't want the trials a,b,c to always go in that sequence - c always needs to come last, but a/a2 and b should be presented randomly. Below is the relevant section of the code. I need list.triala (which is inclusive of trials a and a2, randomized) and list.trialb to be presented randomly, so that participants don't always see the images before the messages. I tried creating another master list and then randomizing those lists within the block, but that didn't work so I'm not even sure if that is something that can be done. Any suggestions or help would be great, thank you!! Also, thank you again so much for the help with this earlier, everything else is working perfectly!! :) Ashley ------------------------------------------------------------ <block creativetask> / trials = [1=generalinstructions; 2-81=list.master; 82 = endtask;] </block> <list master> / items = (surveypage.nextcombo, list.triala.nextvalue, list.trialb.nextvalue, list.trialc.nextvalue) / selectionmode = sequence </list> <list triala> / items = (trial.a,trial.a2) / selectionmode = random </list> <list trialb> / items = (trial.b) </list> <list trialc> / items = (trial.c) </list> <trial a> / ontrialbegin = [ values.RL_x = list.left_right.nextvalue; values.UL_x = list.left_right.nextvalue; ] / stimulustimes = [0=RL,UL,imageinstruction] / inputdevice = mouse / validresponse = (RL,UL) / ontrialend = [ values.selectedcategory = trial.a.response; if (values.selectedcategory == "RL"){ values.selectedcategoryitem = picture.RL.currentitemnumber; } else if (values.selectedcategory == "UL"){ values.selectedcategoryitem = picture.UL.currentitemnumber; }; ] </trial> <trial a2> / ontrialbegin = [ values.RM_x = list.left_right.nextvalue; values.UM_x = list.left_right.nextvalue; ] / stimulustimes = [0==RM,UM,imageinstruction] / inputdevice = mouse / validresponse = (RM,UM) / ontrialend = [ values.selectedcategory = trial.a2.response; if (values.selectedcategory == "RM"){ values.selectedcategoryitem = picture.RM.currentitemnumber; } else if (values.selectedcategory == "UM"){ values.selectedcategoryitem = picture.UM.currentitemnumber; }; ] </trial> <trial b> / ontrialbegin = [ values.MAX_x = list.left_right.nextvalue; values.MIN_x = list.left_right.nextvalue; ] / stimulustimes = [0=background1,background2,messageinstruction,MAX,MIN] / inputdevice = mouse / validresponse = (MAX,MIN) / ontrialend = [ values.selectedmessage = trial.b.response; if (values.selectedmessage == "MAX"){ values.selectedmessageitem = picture.MAX.currentitemnumber; } else if (values.selectedmessage == "MIN"){ values.selectedmessageitem = picture.MIN.currentitemnumber; }; ] </trial> <trial c> / ontrialbegin = [ if (values.selectedcategory == "RL"){ picture.category.item.1 = item.RL_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "RM"){ picture.category.item.1 = item.RM_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "UL"){ picture.category.item.1 = item.UL_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "UM"){ picture.category.item.1 = item.UM_items.item(values.selectedcategoryitem); }; if (values.selectedmessage == "MAX") { picture.message.item.1 = item.MAX_items.item(values.selectedmessageitem); } else if (values.selectedmessage == "MIN") { picture.message.item.1 = item.MIN_items.item(values.selectedmessageitem); }; ] / stimulustimes = [0=background, category, message, comboinstruction] / inputdevice = mouse / validresponse = (lbuttondown) </trial> I would prefer answering that when I have something to actually work with, i.e. the full script and all necessary files. OK, sorry about that. I've attached the working script and necessary files in a .zip file. Please let me know if you need anything else. Thanks so much, Ashley I cannot seem to find vertical vs horizontal messages in the attached set anywhere. They all appear to be the same? Sorry about that. Another folder is attached with the vertical and horizontal message overlays - I'm sorry also to send a separate file. I tried to send the full file again so you would have everything in one place, but it exceeded my space for posting files on the site so I couldn't send that. Anyway, I was playing around with square versions of the messages (which is what was in the task script and associated files I sent at first, files named MAX##OVER.png and MIN##OVER.png), but pairing vertical images with vertical messages would be best. In this attached file, the horizontal messages are named hMAX##overlay.png or hMIN##overlay.png and the vertical versions are the same except they start with "v" instead of "h." Hopefully this is clear enough - you probably noticed this already but there are many more vertical *images* than horizontal ones, but if the v/h messages could be paired with those v/h images, that would be ideal. The other issue related to randomizing presentation of the list.triala and list.trialb presentations is near the top of the script. Please let me know if anything else is missing. Thank you!! Ashley See attached. Hi Dave, THANK YOU so much!! I really can't thank you enough. Everything works perfectly!! I sincerely appreciate it! Ashley
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
+x+x+x+x+x+x+xHi! I hope all is well. I am here with a follow-up question about this task :) Some of the images and some of the messages I am using are vertical versus horizontal and I am wondering if there is a simple enough way to link the item lists of the various stimuli so that in Trial c, where participants view their created combinations of images and messages, they could be linked such that if participants selected a vertical image, the vertical version of the message would be displayed on top of it in Trial c (I have vertical versions and horizontal versions created for all message overlays). Example Block: Trial a: Participant views images RM01, RL14, UM22, UL39 Trial b: Participant views messages MAX19, MIN28 Trial c: Participant sees the horizontal version of message MIN28 overlaid on the image *because* they chose image UM22 (which happens to be horizontal) VERSUS participant sees the vertical version of message MIN28 overlaid because they chose image RM01 (which is vertical). I am thinking this might be pretty complicated, but if there is somewhere I can be directed to help me figure it out, that would be amazing! Please let me know if this isn't exactly clear. Thank you in advance for any help!!! Ashley I cannot possibly answer this without the full code as well as all images, etc, the script requires to run. I'm sorry about that! I didn't realize. I will organize and post the code and stimuli later. I do have another (quick?) question though, if it is something that can be answered easily/without code. I changed the script a bit so that two of the image categories are showing on one page (instead of all four) and so that presentation of the two image trials are randomized. I did this using lists and a master list, and all of that works great. One thing I cannot figure out how to do is to randomize the presentation order of the image and message trials (we decided we don't want the trials a,b,c to always go in that sequence - c always needs to come last, but a/a2 and b should be presented randomly. Below is the relevant section of the code. I need list.triala (which is inclusive of trials a and a2, randomized) and list.trialb to be presented randomly, so that participants don't always see the images before the messages. I tried creating another master list and then randomizing those lists within the block, but that didn't work so I'm not even sure if that is something that can be done. Any suggestions or help would be great, thank you!! Also, thank you again so much for the help with this earlier, everything else is working perfectly!! :) Ashley ------------------------------------------------------------ <block creativetask> / trials = [1=generalinstructions; 2-81=list.master; 82 = endtask;] </block> <list master> / items = (surveypage.nextcombo, list.triala.nextvalue, list.trialb.nextvalue, list.trialc.nextvalue) / selectionmode = sequence </list> <list triala> / items = (trial.a,trial.a2) / selectionmode = random </list> <list trialb> / items = (trial.b) </list> <list trialc> / items = (trial.c) </list> <trial a> / ontrialbegin = [ values.RL_x = list.left_right.nextvalue; values.UL_x = list.left_right.nextvalue; ] / stimulustimes = [0=RL,UL,imageinstruction] / inputdevice = mouse / validresponse = (RL,UL) / ontrialend = [ values.selectedcategory = trial.a.response; if (values.selectedcategory == "RL"){ values.selectedcategoryitem = picture.RL.currentitemnumber; } else if (values.selectedcategory == "UL"){ values.selectedcategoryitem = picture.UL.currentitemnumber; }; ] </trial> <trial a2> / ontrialbegin = [ values.RM_x = list.left_right.nextvalue; values.UM_x = list.left_right.nextvalue; ] / stimulustimes = [0==RM,UM,imageinstruction] / inputdevice = mouse / validresponse = (RM,UM) / ontrialend = [ values.selectedcategory = trial.a2.response; if (values.selectedcategory == "RM"){ values.selectedcategoryitem = picture.RM.currentitemnumber; } else if (values.selectedcategory == "UM"){ values.selectedcategoryitem = picture.UM.currentitemnumber; }; ] </trial> <trial b> / ontrialbegin = [ values.MAX_x = list.left_right.nextvalue; values.MIN_x = list.left_right.nextvalue; ] / stimulustimes = [0=background1,background2,messageinstruction,MAX,MIN] / inputdevice = mouse / validresponse = (MAX,MIN) / ontrialend = [ values.selectedmessage = trial.b.response; if (values.selectedmessage == "MAX"){ values.selectedmessageitem = picture.MAX.currentitemnumber; } else if (values.selectedmessage == "MIN"){ values.selectedmessageitem = picture.MIN.currentitemnumber; }; ] </trial> <trial c> / ontrialbegin = [ if (values.selectedcategory == "RL"){ picture.category.item.1 = item.RL_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "RM"){ picture.category.item.1 = item.RM_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "UL"){ picture.category.item.1 = item.UL_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "UM"){ picture.category.item.1 = item.UM_items.item(values.selectedcategoryitem); }; if (values.selectedmessage == "MAX") { picture.message.item.1 = item.MAX_items.item(values.selectedmessageitem); } else if (values.selectedmessage == "MIN") { picture.message.item.1 = item.MIN_items.item(values.selectedmessageitem); }; ] / stimulustimes = [0=background, category, message, comboinstruction] / inputdevice = mouse / validresponse = (lbuttondown) </trial> I would prefer answering that when I have something to actually work with, i.e. the full script and all necessary files. OK, sorry about that. I've attached the working script and necessary files in a .zip file. Please let me know if you need anything else. Thanks so much, Ashley I cannot seem to find vertical vs horizontal messages in the attached set anywhere. They all appear to be the same? Sorry about that. Another folder is attached with the vertical and horizontal message overlays - I'm sorry also to send a separate file. I tried to send the full file again so you would have everything in one place, but it exceeded my space for posting files on the site so I couldn't send that. Anyway, I was playing around with square versions of the messages (which is what was in the task script and associated files I sent at first, files named MAX##OVER.png and MIN##OVER.png), but pairing vertical images with vertical messages would be best. In this attached file, the horizontal messages are named hMAX##overlay.png or hMIN##overlay.png and the vertical versions are the same except they start with "v" instead of "h." Hopefully this is clear enough - you probably noticed this already but there are many more vertical *images* than horizontal ones, but if the v/h messages could be paired with those v/h images, that would be ideal. The other issue related to randomizing presentation of the list.triala and list.trialb presentations is near the top of the script. Please let me know if anything else is missing. Thank you!! Ashley See attached.
|
|
|
ashleym
|
|
Group: Forum Members
Posts: 31,
Visits: 119
|
+x+x+x+x+x+xHi! I hope all is well. I am here with a follow-up question about this task :) Some of the images and some of the messages I am using are vertical versus horizontal and I am wondering if there is a simple enough way to link the item lists of the various stimuli so that in Trial c, where participants view their created combinations of images and messages, they could be linked such that if participants selected a vertical image, the vertical version of the message would be displayed on top of it in Trial c (I have vertical versions and horizontal versions created for all message overlays). Example Block: Trial a: Participant views images RM01, RL14, UM22, UL39 Trial b: Participant views messages MAX19, MIN28 Trial c: Participant sees the horizontal version of message MIN28 overlaid on the image *because* they chose image UM22 (which happens to be horizontal) VERSUS participant sees the vertical version of message MIN28 overlaid because they chose image RM01 (which is vertical). I am thinking this might be pretty complicated, but if there is somewhere I can be directed to help me figure it out, that would be amazing! Please let me know if this isn't exactly clear. Thank you in advance for any help!!! Ashley I cannot possibly answer this without the full code as well as all images, etc, the script requires to run. I'm sorry about that! I didn't realize. I will organize and post the code and stimuli later. I do have another (quick?) question though, if it is something that can be answered easily/without code. I changed the script a bit so that two of the image categories are showing on one page (instead of all four) and so that presentation of the two image trials are randomized. I did this using lists and a master list, and all of that works great. One thing I cannot figure out how to do is to randomize the presentation order of the image and message trials (we decided we don't want the trials a,b,c to always go in that sequence - c always needs to come last, but a/a2 and b should be presented randomly. Below is the relevant section of the code. I need list.triala (which is inclusive of trials a and a2, randomized) and list.trialb to be presented randomly, so that participants don't always see the images before the messages. I tried creating another master list and then randomizing those lists within the block, but that didn't work so I'm not even sure if that is something that can be done. Any suggestions or help would be great, thank you!! Also, thank you again so much for the help with this earlier, everything else is working perfectly!! :) Ashley ------------------------------------------------------------ <block creativetask> / trials = [1=generalinstructions; 2-81=list.master; 82 = endtask;] </block> <list master> / items = (surveypage.nextcombo, list.triala.nextvalue, list.trialb.nextvalue, list.trialc.nextvalue) / selectionmode = sequence </list> <list triala> / items = (trial.a,trial.a2) / selectionmode = random </list> <list trialb> / items = (trial.b) </list> <list trialc> / items = (trial.c) </list> <trial a> / ontrialbegin = [ values.RL_x = list.left_right.nextvalue; values.UL_x = list.left_right.nextvalue; ] / stimulustimes = [0=RL,UL,imageinstruction] / inputdevice = mouse / validresponse = (RL,UL) / ontrialend = [ values.selectedcategory = trial.a.response; if (values.selectedcategory == "RL"){ values.selectedcategoryitem = picture.RL.currentitemnumber; } else if (values.selectedcategory == "UL"){ values.selectedcategoryitem = picture.UL.currentitemnumber; }; ] </trial> <trial a2> / ontrialbegin = [ values.RM_x = list.left_right.nextvalue; values.UM_x = list.left_right.nextvalue; ] / stimulustimes = [0==RM,UM,imageinstruction] / inputdevice = mouse / validresponse = (RM,UM) / ontrialend = [ values.selectedcategory = trial.a2.response; if (values.selectedcategory == "RM"){ values.selectedcategoryitem = picture.RM.currentitemnumber; } else if (values.selectedcategory == "UM"){ values.selectedcategoryitem = picture.UM.currentitemnumber; }; ] </trial> <trial b> / ontrialbegin = [ values.MAX_x = list.left_right.nextvalue; values.MIN_x = list.left_right.nextvalue; ] / stimulustimes = [0=background1,background2,messageinstruction,MAX,MIN] / inputdevice = mouse / validresponse = (MAX,MIN) / ontrialend = [ values.selectedmessage = trial.b.response; if (values.selectedmessage == "MAX"){ values.selectedmessageitem = picture.MAX.currentitemnumber; } else if (values.selectedmessage == "MIN"){ values.selectedmessageitem = picture.MIN.currentitemnumber; }; ] </trial> <trial c> / ontrialbegin = [ if (values.selectedcategory == "RL"){ picture.category.item.1 = item.RL_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "RM"){ picture.category.item.1 = item.RM_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "UL"){ picture.category.item.1 = item.UL_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "UM"){ picture.category.item.1 = item.UM_items.item(values.selectedcategoryitem); }; if (values.selectedmessage == "MAX") { picture.message.item.1 = item.MAX_items.item(values.selectedmessageitem); } else if (values.selectedmessage == "MIN") { picture.message.item.1 = item.MIN_items.item(values.selectedmessageitem); }; ] / stimulustimes = [0=background, category, message, comboinstruction] / inputdevice = mouse / validresponse = (lbuttondown) </trial> I would prefer answering that when I have something to actually work with, i.e. the full script and all necessary files. OK, sorry about that. I've attached the working script and necessary files in a .zip file. Please let me know if you need anything else. Thanks so much, Ashley I cannot seem to find vertical vs horizontal messages in the attached set anywhere. They all appear to be the same? Sorry about that. Another folder is attached with the vertical and horizontal message overlays - I'm sorry also to send a separate file. I tried to send the full file again so you would have everything in one place, but it exceeded my space for posting files on the site so I couldn't send that. Anyway, I was playing around with square versions of the messages (which is what was in the task script and associated files I sent at first, files named MAX##OVER.png and MIN##OVER.png), but pairing vertical images with vertical messages would be best. In this attached file, the horizontal messages are named hMAX##overlay.png or hMIN##overlay.png and the vertical versions are the same except they start with "v" instead of "h." Hopefully this is clear enough - you probably noticed this already but there are many more vertical *images* than horizontal ones, but if the v/h messages could be paired with those v/h images, that would be ideal. The other issue related to randomizing presentation of the list.triala and list.trialb presentations is near the top of the script. Please let me know if anything else is missing. Thank you!! Ashley
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
+x+x+x+x+xHi! I hope all is well. I am here with a follow-up question about this task :) Some of the images and some of the messages I am using are vertical versus horizontal and I am wondering if there is a simple enough way to link the item lists of the various stimuli so that in Trial c, where participants view their created combinations of images and messages, they could be linked such that if participants selected a vertical image, the vertical version of the message would be displayed on top of it in Trial c (I have vertical versions and horizontal versions created for all message overlays). Example Block: Trial a: Participant views images RM01, RL14, UM22, UL39 Trial b: Participant views messages MAX19, MIN28 Trial c: Participant sees the horizontal version of message MIN28 overlaid on the image *because* they chose image UM22 (which happens to be horizontal) VERSUS participant sees the vertical version of message MIN28 overlaid because they chose image RM01 (which is vertical). I am thinking this might be pretty complicated, but if there is somewhere I can be directed to help me figure it out, that would be amazing! Please let me know if this isn't exactly clear. Thank you in advance for any help!!! Ashley I cannot possibly answer this without the full code as well as all images, etc, the script requires to run. I'm sorry about that! I didn't realize. I will organize and post the code and stimuli later. I do have another (quick?) question though, if it is something that can be answered easily/without code. I changed the script a bit so that two of the image categories are showing on one page (instead of all four) and so that presentation of the two image trials are randomized. I did this using lists and a master list, and all of that works great. One thing I cannot figure out how to do is to randomize the presentation order of the image and message trials (we decided we don't want the trials a,b,c to always go in that sequence - c always needs to come last, but a/a2 and b should be presented randomly. Below is the relevant section of the code. I need list.triala (which is inclusive of trials a and a2, randomized) and list.trialb to be presented randomly, so that participants don't always see the images before the messages. I tried creating another master list and then randomizing those lists within the block, but that didn't work so I'm not even sure if that is something that can be done. Any suggestions or help would be great, thank you!! Also, thank you again so much for the help with this earlier, everything else is working perfectly!! :) Ashley ------------------------------------------------------------ <block creativetask> / trials = [1=generalinstructions; 2-81=list.master; 82 = endtask;] </block> <list master> / items = (surveypage.nextcombo, list.triala.nextvalue, list.trialb.nextvalue, list.trialc.nextvalue) / selectionmode = sequence </list> <list triala> / items = (trial.a,trial.a2) / selectionmode = random </list> <list trialb> / items = (trial.b) </list> <list trialc> / items = (trial.c) </list> <trial a> / ontrialbegin = [ values.RL_x = list.left_right.nextvalue; values.UL_x = list.left_right.nextvalue; ] / stimulustimes = [0=RL,UL,imageinstruction] / inputdevice = mouse / validresponse = (RL,UL) / ontrialend = [ values.selectedcategory = trial.a.response; if (values.selectedcategory == "RL"){ values.selectedcategoryitem = picture.RL.currentitemnumber; } else if (values.selectedcategory == "UL"){ values.selectedcategoryitem = picture.UL.currentitemnumber; }; ] </trial> <trial a2> / ontrialbegin = [ values.RM_x = list.left_right.nextvalue; values.UM_x = list.left_right.nextvalue; ] / stimulustimes = [0==RM,UM,imageinstruction] / inputdevice = mouse / validresponse = (RM,UM) / ontrialend = [ values.selectedcategory = trial.a2.response; if (values.selectedcategory == "RM"){ values.selectedcategoryitem = picture.RM.currentitemnumber; } else if (values.selectedcategory == "UM"){ values.selectedcategoryitem = picture.UM.currentitemnumber; }; ] </trial> <trial b> / ontrialbegin = [ values.MAX_x = list.left_right.nextvalue; values.MIN_x = list.left_right.nextvalue; ] / stimulustimes = [0=background1,background2,messageinstruction,MAX,MIN] / inputdevice = mouse / validresponse = (MAX,MIN) / ontrialend = [ values.selectedmessage = trial.b.response; if (values.selectedmessage == "MAX"){ values.selectedmessageitem = picture.MAX.currentitemnumber; } else if (values.selectedmessage == "MIN"){ values.selectedmessageitem = picture.MIN.currentitemnumber; }; ] </trial> <trial c> / ontrialbegin = [ if (values.selectedcategory == "RL"){ picture.category.item.1 = item.RL_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "RM"){ picture.category.item.1 = item.RM_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "UL"){ picture.category.item.1 = item.UL_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "UM"){ picture.category.item.1 = item.UM_items.item(values.selectedcategoryitem); }; if (values.selectedmessage == "MAX") { picture.message.item.1 = item.MAX_items.item(values.selectedmessageitem); } else if (values.selectedmessage == "MIN") { picture.message.item.1 = item.MIN_items.item(values.selectedmessageitem); }; ] / stimulustimes = [0=background, category, message, comboinstruction] / inputdevice = mouse / validresponse = (lbuttondown) </trial> I would prefer answering that when I have something to actually work with, i.e. the full script and all necessary files. OK, sorry about that. I've attached the working script and necessary files in a .zip file. Please let me know if you need anything else. Thanks so much, Ashley I cannot seem to find vertical vs horizontal messages in the attached set anywhere. They all appear to be the same?
|
|
|
ashleym
|
|
Group: Forum Members
Posts: 31,
Visits: 119
|
+x+x+x+xHi! I hope all is well. I am here with a follow-up question about this task :) Some of the images and some of the messages I am using are vertical versus horizontal and I am wondering if there is a simple enough way to link the item lists of the various stimuli so that in Trial c, where participants view their created combinations of images and messages, they could be linked such that if participants selected a vertical image, the vertical version of the message would be displayed on top of it in Trial c (I have vertical versions and horizontal versions created for all message overlays). Example Block: Trial a: Participant views images RM01, RL14, UM22, UL39 Trial b: Participant views messages MAX19, MIN28 Trial c: Participant sees the horizontal version of message MIN28 overlaid on the image *because* they chose image UM22 (which happens to be horizontal) VERSUS participant sees the vertical version of message MIN28 overlaid because they chose image RM01 (which is vertical). I am thinking this might be pretty complicated, but if there is somewhere I can be directed to help me figure it out, that would be amazing! Please let me know if this isn't exactly clear. Thank you in advance for any help!!! Ashley I cannot possibly answer this without the full code as well as all images, etc, the script requires to run. I'm sorry about that! I didn't realize. I will organize and post the code and stimuli later. I do have another (quick?) question though, if it is something that can be answered easily/without code. I changed the script a bit so that two of the image categories are showing on one page (instead of all four) and so that presentation of the two image trials are randomized. I did this using lists and a master list, and all of that works great. One thing I cannot figure out how to do is to randomize the presentation order of the image and message trials (we decided we don't want the trials a,b,c to always go in that sequence - c always needs to come last, but a/a2 and b should be presented randomly. Below is the relevant section of the code. I need list.triala (which is inclusive of trials a and a2, randomized) and list.trialb to be presented randomly, so that participants don't always see the images before the messages. I tried creating another master list and then randomizing those lists within the block, but that didn't work so I'm not even sure if that is something that can be done. Any suggestions or help would be great, thank you!! Also, thank you again so much for the help with this earlier, everything else is working perfectly!! :) Ashley ------------------------------------------------------------ <block creativetask> / trials = [1=generalinstructions; 2-81=list.master; 82 = endtask;] </block> <list master> / items = (surveypage.nextcombo, list.triala.nextvalue, list.trialb.nextvalue, list.trialc.nextvalue) / selectionmode = sequence </list> <list triala> / items = (trial.a,trial.a2) / selectionmode = random </list> <list trialb> / items = (trial.b) </list> <list trialc> / items = (trial.c) </list> <trial a> / ontrialbegin = [ values.RL_x = list.left_right.nextvalue; values.UL_x = list.left_right.nextvalue; ] / stimulustimes = [0=RL,UL,imageinstruction] / inputdevice = mouse / validresponse = (RL,UL) / ontrialend = [ values.selectedcategory = trial.a.response; if (values.selectedcategory == "RL"){ values.selectedcategoryitem = picture.RL.currentitemnumber; } else if (values.selectedcategory == "UL"){ values.selectedcategoryitem = picture.UL.currentitemnumber; }; ] </trial> <trial a2> / ontrialbegin = [ values.RM_x = list.left_right.nextvalue; values.UM_x = list.left_right.nextvalue; ] / stimulustimes = [0==RM,UM,imageinstruction] / inputdevice = mouse / validresponse = (RM,UM) / ontrialend = [ values.selectedcategory = trial.a2.response; if (values.selectedcategory == "RM"){ values.selectedcategoryitem = picture.RM.currentitemnumber; } else if (values.selectedcategory == "UM"){ values.selectedcategoryitem = picture.UM.currentitemnumber; }; ] </trial> <trial b> / ontrialbegin = [ values.MAX_x = list.left_right.nextvalue; values.MIN_x = list.left_right.nextvalue; ] / stimulustimes = [0=background1,background2,messageinstruction,MAX,MIN] / inputdevice = mouse / validresponse = (MAX,MIN) / ontrialend = [ values.selectedmessage = trial.b.response; if (values.selectedmessage == "MAX"){ values.selectedmessageitem = picture.MAX.currentitemnumber; } else if (values.selectedmessage == "MIN"){ values.selectedmessageitem = picture.MIN.currentitemnumber; }; ] </trial> <trial c> / ontrialbegin = [ if (values.selectedcategory == "RL"){ picture.category.item.1 = item.RL_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "RM"){ picture.category.item.1 = item.RM_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "UL"){ picture.category.item.1 = item.UL_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "UM"){ picture.category.item.1 = item.UM_items.item(values.selectedcategoryitem); }; if (values.selectedmessage == "MAX") { picture.message.item.1 = item.MAX_items.item(values.selectedmessageitem); } else if (values.selectedmessage == "MIN") { picture.message.item.1 = item.MIN_items.item(values.selectedmessageitem); }; ] / stimulustimes = [0=background, category, message, comboinstruction] / inputdevice = mouse / validresponse = (lbuttondown) </trial> I would prefer answering that when I have something to actually work with, i.e. the full script and all necessary files. OK, sorry about that. I've attached the working script and necessary files in a .zip file. Please let me know if you need anything else. Thanks so much, Ashley
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
+x+x+xHi! I hope all is well. I am here with a follow-up question about this task :) Some of the images and some of the messages I am using are vertical versus horizontal and I am wondering if there is a simple enough way to link the item lists of the various stimuli so that in Trial c, where participants view their created combinations of images and messages, they could be linked such that if participants selected a vertical image, the vertical version of the message would be displayed on top of it in Trial c (I have vertical versions and horizontal versions created for all message overlays). Example Block: Trial a: Participant views images RM01, RL14, UM22, UL39 Trial b: Participant views messages MAX19, MIN28 Trial c: Participant sees the horizontal version of message MIN28 overlaid on the image *because* they chose image UM22 (which happens to be horizontal) VERSUS participant sees the vertical version of message MIN28 overlaid because they chose image RM01 (which is vertical). I am thinking this might be pretty complicated, but if there is somewhere I can be directed to help me figure it out, that would be amazing! Please let me know if this isn't exactly clear. Thank you in advance for any help!!! Ashley I cannot possibly answer this without the full code as well as all images, etc, the script requires to run. I'm sorry about that! I didn't realize. I will organize and post the code and stimuli later. I do have another (quick?) question though, if it is something that can be answered easily/without code. I changed the script a bit so that two of the image categories are showing on one page (instead of all four) and so that presentation of the two image trials are randomized. I did this using lists and a master list, and all of that works great. One thing I cannot figure out how to do is to randomize the presentation order of the image and message trials (we decided we don't want the trials a,b,c to always go in that sequence - c always needs to come last, but a/a2 and b should be presented randomly. Below is the relevant section of the code. I need list.triala (which is inclusive of trials a and a2, randomized) and list.trialb to be presented randomly, so that participants don't always see the images before the messages. I tried creating another master list and then randomizing those lists within the block, but that didn't work so I'm not even sure if that is something that can be done. Any suggestions or help would be great, thank you!! Also, thank you again so much for the help with this earlier, everything else is working perfectly!! :) Ashley ------------------------------------------------------------ <block creativetask> / trials = [1=generalinstructions; 2-81=list.master; 82 = endtask;] </block> <list master> / items = (surveypage.nextcombo, list.triala.nextvalue, list.trialb.nextvalue, list.trialc.nextvalue) / selectionmode = sequence </list> <list triala> / items = (trial.a,trial.a2) / selectionmode = random </list> <list trialb> / items = (trial.b) </list> <list trialc> / items = (trial.c) </list> <trial a> / ontrialbegin = [ values.RL_x = list.left_right.nextvalue; values.UL_x = list.left_right.nextvalue; ] / stimulustimes = [0=RL,UL,imageinstruction] / inputdevice = mouse / validresponse = (RL,UL) / ontrialend = [ values.selectedcategory = trial.a.response; if (values.selectedcategory == "RL"){ values.selectedcategoryitem = picture.RL.currentitemnumber; } else if (values.selectedcategory == "UL"){ values.selectedcategoryitem = picture.UL.currentitemnumber; }; ] </trial> <trial a2> / ontrialbegin = [ values.RM_x = list.left_right.nextvalue; values.UM_x = list.left_right.nextvalue; ] / stimulustimes = [0==RM,UM,imageinstruction] / inputdevice = mouse / validresponse = (RM,UM) / ontrialend = [ values.selectedcategory = trial.a2.response; if (values.selectedcategory == "RM"){ values.selectedcategoryitem = picture.RM.currentitemnumber; } else if (values.selectedcategory == "UM"){ values.selectedcategoryitem = picture.UM.currentitemnumber; }; ] </trial> <trial b> / ontrialbegin = [ values.MAX_x = list.left_right.nextvalue; values.MIN_x = list.left_right.nextvalue; ] / stimulustimes = [0=background1,background2,messageinstruction,MAX,MIN] / inputdevice = mouse / validresponse = (MAX,MIN) / ontrialend = [ values.selectedmessage = trial.b.response; if (values.selectedmessage == "MAX"){ values.selectedmessageitem = picture.MAX.currentitemnumber; } else if (values.selectedmessage == "MIN"){ values.selectedmessageitem = picture.MIN.currentitemnumber; }; ] </trial> <trial c> / ontrialbegin = [ if (values.selectedcategory == "RL"){ picture.category.item.1 = item.RL_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "RM"){ picture.category.item.1 = item.RM_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "UL"){ picture.category.item.1 = item.UL_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "UM"){ picture.category.item.1 = item.UM_items.item(values.selectedcategoryitem); }; if (values.selectedmessage == "MAX") { picture.message.item.1 = item.MAX_items.item(values.selectedmessageitem); } else if (values.selectedmessage == "MIN") { picture.message.item.1 = item.MIN_items.item(values.selectedmessageitem); }; ] / stimulustimes = [0=background, category, message, comboinstruction] / inputdevice = mouse / validresponse = (lbuttondown) </trial> I would prefer answering that when I have something to actually work with, i.e. the full script and all necessary files, but in a nutshell, it goes like this: <block example> / trials = [1-80=list.master;] </block> <list master> / items = (surveypage.nextcombo, list.a_b_order_randomizer.nextvalue, list.a_b_order_randomizer.nextvalue, trial.c) / selectionmode = sequence </list> <list a_b_order_randomizer> / items = (list.triala.nextvalue, list.trialb.nextvalue) / selectionrate = always </list> <list triala> / items = (trial.a,trial.a2) </list> <list trialb> / items = (trial.b) </list> <surveypage nextcombo> / caption = "nextcombo" </surveypage> <trial a> / stimulusframes = [1=mytext] / validresponse = (57) </trial> <trial a2> / stimulusframes = [1=mytext] / validresponse = (57) </trial> <trial b> / stimulusframes = [1=mytext] / validresponse = (57) </trial> <trial c> / stimulusframes = [1=mytext] / validresponse = (57) </trial> <text mytext> / items = ("<%script.currenttrial%>") </text>
|
|
|
ashleym
|
|
Group: Forum Members
Posts: 31,
Visits: 119
|
+x+xHi! I hope all is well. I am here with a follow-up question about this task :) Some of the images and some of the messages I am using are vertical versus horizontal and I am wondering if there is a simple enough way to link the item lists of the various stimuli so that in Trial c, where participants view their created combinations of images and messages, they could be linked such that if participants selected a vertical image, the vertical version of the message would be displayed on top of it in Trial c (I have vertical versions and horizontal versions created for all message overlays). Example Block: Trial a: Participant views images RM01, RL14, UM22, UL39 Trial b: Participant views messages MAX19, MIN28 Trial c: Participant sees the horizontal version of message MIN28 overlaid on the image *because* they chose image UM22 (which happens to be horizontal) VERSUS participant sees the vertical version of message MIN28 overlaid because they chose image RM01 (which is vertical). I am thinking this might be pretty complicated, but if there is somewhere I can be directed to help me figure it out, that would be amazing! Please let me know if this isn't exactly clear. Thank you in advance for any help!!! Ashley I cannot possibly answer this without the full code as well as all images, etc, the script requires to run. I'm sorry about that! I didn't realize. I will organize and post the code and stimuli later. I do have another (quick?) question though, if it is something that can be answered easily/without code. I changed the script a bit so that two of the image categories are showing on one page (instead of all four) and so that presentation of the two image trials are randomized. I did this using lists and a master list, and all of that works great. One thing I cannot figure out how to do is to randomize the presentation order of the image and message trials (we decided we don't want the trials a,b,c to always go in that sequence - c always needs to come last, but a/a2 and b should be presented randomly. Below is the relevant section of the code. I need list.triala (which is inclusive of trials a and a2, randomized) and list.trialb to be presented randomly, so that participants don't always see the images before the messages. I tried creating another master list and then randomizing those lists within the block, but that didn't work so I'm not even sure if that is something that can be done. Any suggestions or help would be great, thank you!! Also, thank you again so much for the help with this earlier, everything else is working perfectly!! :) Ashley ------------------------------------------------------------ <block creativetask> / trials = [1=generalinstructions; 2-81=list.master; 82 = endtask;] </block> <list master> / items = (surveypage.nextcombo, list.triala.nextvalue, list.trialb.nextvalue, list.trialc.nextvalue) / selectionmode = sequence </list> <list triala> / items = (trial.a,trial.a2) / selectionmode = random </list> <list trialb> / items = (trial.b) </list> <list trialc> / items = (trial.c) </list> <trial a> / ontrialbegin = [ values.RL_x = list.left_right.nextvalue; values.UL_x = list.left_right.nextvalue; ] / stimulustimes = [0=RL,UL,imageinstruction] / inputdevice = mouse / validresponse = (RL,UL) / ontrialend = [ values.selectedcategory = trial.a.response; if (values.selectedcategory == "RL"){ values.selectedcategoryitem = picture.RL.currentitemnumber; } else if (values.selectedcategory == "UL"){ values.selectedcategoryitem = picture.UL.currentitemnumber; }; ] </trial> <trial a2> / ontrialbegin = [ values.RM_x = list.left_right.nextvalue; values.UM_x = list.left_right.nextvalue; ] / stimulustimes = [0==RM,UM,imageinstruction] / inputdevice = mouse / validresponse = (RM,UM) / ontrialend = [ values.selectedcategory = trial.a2.response; if (values.selectedcategory == "RM"){ values.selectedcategoryitem = picture.RM.currentitemnumber; } else if (values.selectedcategory == "UM"){ values.selectedcategoryitem = picture.UM.currentitemnumber; }; ] </trial> <trial b> / ontrialbegin = [ values.MAX_x = list.left_right.nextvalue; values.MIN_x = list.left_right.nextvalue; ] / stimulustimes = [0=background1,background2,messageinstruction,MAX,MIN] / inputdevice = mouse / validresponse = (MAX,MIN) / ontrialend = [ values.selectedmessage = trial.b.response; if (values.selectedmessage == "MAX"){ values.selectedmessageitem = picture.MAX.currentitemnumber; } else if (values.selectedmessage == "MIN"){ values.selectedmessageitem = picture.MIN.currentitemnumber; }; ] </trial> <trial c> / ontrialbegin = [ if (values.selectedcategory == "RL"){ picture.category.item.1 = item.RL_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "RM"){ picture.category.item.1 = item.RM_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "UL"){ picture.category.item.1 = item.UL_items.item(values.selectedcategoryitem); } else if (values.selectedcategory == "UM"){ picture.category.item.1 = item.UM_items.item(values.selectedcategoryitem); }; if (values.selectedmessage == "MAX") { picture.message.item.1 = item.MAX_items.item(values.selectedmessageitem); } else if (values.selectedmessage == "MIN") { picture.message.item.1 = item.MIN_items.item(values.selectedmessageitem); }; ] / stimulustimes = [0=background, category, message, comboinstruction] / inputdevice = mouse / validresponse = (lbuttondown) </trial>
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
+xHi! I hope all is well. I am here with a follow-up question about this task :) Some of the images and some of the messages I am using are vertical versus horizontal and I am wondering if there is a simple enough way to link the item lists of the various stimuli so that in Trial c, where participants view their created combinations of images and messages, they could be linked such that if participants selected a vertical image, the vertical version of the message would be displayed on top of it in Trial c (I have vertical versions and horizontal versions created for all message overlays). Example Block: Trial a: Participant views images RM01, RL14, UM22, UL39 Trial b: Participant views messages MAX19, MIN28 Trial c: Participant sees the horizontal version of message MIN28 overlaid on the image *because* they chose image UM22 (which happens to be horizontal) VERSUS participant sees the vertical version of message MIN28 overlaid because they chose image RM01 (which is vertical). I am thinking this might be pretty complicated, but if there is somewhere I can be directed to help me figure it out, that would be amazing! Please let me know if this isn't exactly clear. Thank you in advance for any help!!! Ashley I cannot possibly answer this without the full code as well as all images, etc, the script requires to run.
|
|
|
ashleym
|
|
Group: Forum Members
Posts: 31,
Visits: 119
|
Hi! I hope all is well. I am here with a follow-up question about this task :)
Some of the images and some of the messages I am using are vertical versus horizontal and I am wondering if there is a simple enough way to link the item lists of the various stimuli so that in Trial c, where participants view their created combinations of images and messages, they could be linked such that if participants selected a vertical image, the vertical version of the message would be displayed on top of it in Trial c (I have vertical versions and horizontal versions created for all message overlays).
Example Block: Trial a: Participant views images RM01, RL14, UM22, UL39 Trial b: Participant views messages MAX19, MIN28 Trial c: Participant sees the horizontal version of message MIN28 overlaid on the image *because* they chose image UM22 (which happens to be horizontal) VERSUS participant sees the vertical version of message MIN28 overlaid because they chose image RM01 (which is vertical).
I am thinking this might be pretty complicated, but if there is somewhere I can be directed to help me figure it out, that would be amazing! Please let me know if this isn't exactly clear. Thank you in advance for any help!!! Ashley
|
|
|
ashleym
|
|
Group: Forum Members
Posts: 31,
Visits: 119
|
+x+xThis is INCREDIBLE, thanks Dave. (Almost) Everything works perfectly! I am having issues with trial c and I am 100% sure it is just because I do not fully understand something...I am sure this is an easy fix somehow. In the code related to trial c (i.e., the category and message elements), if I replace text with picture, it does not work obviously because I do not have items/pictures called "BLANK." If I leave the code as is, what displays in trial c are the names for the pictures (e.g., "MAX_15" and "RM_08"). Would you mind helping me a bit more here to figure out how to display the actual pictures associated with the items selected by participants? I am not clearly understanding the "Blank" piece, I think, otherwise I could probably figure it out. Sorry for what I imagine is a silly question! Thanks again. Just put in any picture file you have available in <picture category> / items = ("someimageyouhaveavailable.jpg") / position = (50%, 30%) </picture> and same for <picture message>. It's just a placeholder that will be replaced with the participant's selections later. THANK YOU! It works perfectly. I really appreciate it! Take care.
|
|
|