help a beginner :)

Michiel Spape Michiel.Spape at nottingham.ac.uk
Tue Jun 29 10:28:46 UTC 2010


Hi Candy & OP,
This is not exactly the case; files should be accessible anywhere on the system, the only problem is that it is A) difficult to move experiments around like that (since the structure on the other computer would need to be exactly the same) and B) for some people difficult in terms of syntax. The second one seems to be the problem here, with several basic things going wrong:
- Windows tends to use back-slash syntax for files that are on the current PC i.e. C:\windows\system32, rather than c:/windows/system32.
- \ is also an escape character and writing addresses very often goes wrong because of it. In inline, for example, you'd have to use c:\\windows\\system32 to produce c:\windows\system32
...
Because of all this often goes wrong, it's usually better to do it like Candy suggested: just dump everything in the same folder as the experiment and never mind about writing down paths. The only good reason for doing it otherwise is that one might want to have some organisation: sad faces 1-100 go in folder 'sad', happy faces 1-100 go in folder happy. Have these folders, then, as subfolders of the place where your experiment is located and use relative paths: sad\\face1.bmp, happy\\face8.bmp. This is also convenient if you then have two attributes, say: TypeOfFace and FaceNumber, because then you can just assign the current face as 
CurrentFace.filename = c.GetAttrib("TypeOfFace") & "\\" & c.GetAttrib("FaceNumber") 
Or something like that.

Best,
Mich

Michiel Spapé
Research Fellow
Perception & Action group
University of Nottingham
School of Psychology


-----Original Message-----
From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Candy Patterson
Sent: 28 June 2010 12:56
To: E-Prime
Subject: Re: help a beginner :)

I'm also a new user so not sure if this answer is correct but
hopefully will make some sense:

My understanding is all the images need to be in the same folder as
the E-Prime script and cannot be in any sub-folders. For the Object
display in a trial (filename1) you just need to list the file name as
found in the folder (e.g. object1.bmp) and therefore there is no need
to have a second attribute with the file path (filename2).

Also, need to ensure in the 'Procedure' line-up that the attribute
[filename1] is associated to an "ImageDisplay". The ImageDisplay
should display the words: Your image '[filename1]' will appear here.

Hope this helps

Candy

-- 
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.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

-- 
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