help--alternating text and image stimuli

Rick O'Gorman rickogorman at gmail.com
Wed May 20 18:32:11 UTC 2009


As per an earlier post, sorry to have lagged in my reply to this thread. 
Thanks to those who suggested ideas--David McF, Paul J, liwenna. On 
seeing Paul's suggestion, using a substantial bit of inline code, I was 
inspired to try figuring out the slidestate method, as it seemed simpler. :)

David's email confirmed what I had found--that Slidestate was the 
solution, but I did not need to use inline code to tell E-Prime which 
slidestate to use. It's simpler than that.

After setting up the alternative slidestates and naming them (you get at 
this by right-clicking on the tab at the bottom, which will default to, 
err, 'default', then 'default1', etc.), you can tell E-Prime which one 
to use in the Slide's general property options. Under the General tab, 
there's a setting for Activestate. Instead of choosing one of the 
slidestates that you have created, you can instead enter a variable name 
in here (e.g., [stimtype]) and then set up which slidestate to use in a 
list elsewhere, using one of the slidestate names (in my case, I had 
two, one called 'text' and one called 'pic'). So in my relevant list, I 
had a variable called slidestate that took either a value of 'pic' or 
'text' depending on another variable setting (whether I wanted to 
present an image or text as a stimulus). This then told the relevant 
slide to use either pic or text, as appropriate.

By the way, when creating multiple slidestates that are variations of 
each other, there is a 'clone state' option, which is a nice 
labour-saving tool.

Maybe E-Prime will keep me loyal yet. :)

Rick

David McFarlane wrote:
> Rick,
> 
> I would use a Slide object with multiple states, as you guessed.  One 
> state would use a Text sub-object, and another state would use an 
> Image sub-object.  You would then have to use a bit of inline script 
> to set the state before running the slide in your procedure, based 
> either on the value of the attribute that encodes the stimulus, or 
> using another attribute just to indicate text vs. image.  Might be 
> worth browsing the PST downloads to see if they show how to handle 
> Slide states, or just make a demo program with any Slide (or better, 
> a Feedback object, which is just a special type of Slide) and look at 
> the generated script, that's how I figure out how to manage Slide states.
> 
> Good luck,
> -- David McFarlane, Professiona Faultfinder
> 
> 
> At 4/28/2009 05:07 PM Tuesday, you wrote:
>> I'm guessing this is easy to do if you know how, but I can't figure a
>> solution; the manuals are of little help. I am creating an IAT and want
>> a mix of images and text as stimuli. I thought I could just put the
>> image file names in the relevant LIST but this doesn't work. I then
>> realised that slides have either text or image objects, so I figure I'm
>> goiung to have to mess around with multiple versions of slides--do I use
>> slidestate? Or can I layer a text object and image object on top of each
>> other and assume that it is transparent if nothing is called for that
>> implementation? If you've got something that does this can can share it,
>> that would be welcome.
>>
>> Cheers,
>>
>> Rick
>> --
>> Rick O'Gorman, PhD
>> Psychology, Faculty of Development and Society
>> Collegiate Crescent Campus,
>> Sheffield Hallam University,
>> Sheffield
>> S10 2BP
> 
> 
> > 

-- 
Rick O'Gorman, PhD
Psychology, Faculty of Development and Society
Collegiate Crescent Campus,
Sheffield Hallam University,
Sheffield
S10 2BP

Phone: 0114 225 5788 Fax: 0114 225 2430

http://www.shu.ac.uk/psychology/staff/OGorman.html

No passion can survive a woman's seeing her lover hold
his fork in the wrong way.
                                   ~Edith Wharton

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en
-~----------~----~----~----~------~----~------~--~---



More information about the Eprime mailing list