576 images in one slide

47 views
Skip to first unread message

Tobi

unread,
Jan 15, 2010, 10:07:58 AM1/15/10
to E-Prime
Hi together,

I want to show a screen with a 24*24-matrix of small images (24*24
pixels each). It is quite annoying to insert new images on a slide, at
least when we're talking about 576 (and to specify filename, position
etc.).

I thought about using one big bitmap including all those small images,
but due to theoretical reasons images should be randomly placed in
each trial.

Is there a way to specify a slide's content with inline script? That
would make it much easier doing copy and paste.

Thanks a lot,
Tobias

David McFarlane

unread,
Jan 15, 2010, 10:17:11 AM1/15/10
to e-p...@googlegroups.com
Tobia,

Two thoughts:

(1) Arrange 576 SlideImage sub-objects on your slide and use
attribute references for the Filename in each of them. You might
combine this with a nested list to hold & randomize your image file
names, and "colon syntax" for referencing them in the Slide (look
that up in the index in the User's Guide).

(2) If that seems too tedious and you want to do things more directly
in script, then make a mockup of a slide with images, generate the
script, and look at the script that E-Studio generates for the slide
and images. You can puzzle it out from there, along with forays into
the online E-Basic Help guided by what you see in the script.

Good luck!
-- David McFarlane, Professional Faultfinder

Tobi

unread,
Jan 15, 2010, 11:47:07 AM1/15/10
to E-Prime
Thanks David,

576 times inserting sub-objects is indeed too tedious, especially as
copy-paste doesn't work in e-prime for filename or positionin the
object settings.

If I change the code, I can only do that for the e-run script file,
right? If I do change something here I won't see that anywhere in a
visual form like in the main program of e-prime, if I'm not wrong.
This might make it hard to check if it is running as I want.

Tobias

David McFarlane

unread,
Jan 15, 2010, 12:16:19 PM1/15/10
to e-p...@googlegroups.com
Tobias,

>576 times inserting sub-objects is indeed too tedious, especially as
>copy-paste doesn't work in e-prime for filename or positionin the
>object settings.
>
>If I change the code, I can only do that for the e-run script file,
>right? If I do change something here I won't see that anywhere in a
>visual form like in the main program of e-prime, if I'm not wrong.
>This might make it hard to check if it is running as I want.

No, no, no. Sorry if that was not clear. Look at the generated
script just to figure out how things get done. Then go back to
E-Studio and do your editing & exploration in inline script there. I
would make one simple demo program to generate working code that I
can examine, and then a separate demo program where I make my changes
(and mistakes!).

That said, here is another hint. You have not said whether you are
stuck with EP1 or EP2. But if you have access to good old EP1, it is
much, much easier to explore script in E-Run there. As you
recognize, what you change in E-Run will not propogate back to
E-Studio, but in this case you just use E-Run edits to explore &
learn, then apply (possibly by copy & paste) what you learn with
E-Run back to inline script in E-Studio.

Hope that makes things clearer.

Tobias

unread,
Feb 13, 2010, 12:39:01 PM2/13/10
to E-Prime
Hi,

so thanks to David's hint I could manage to compose a script
displaying 576 images on one slide. As I use a loop function it is not
much code, however the processing time is a problem.
Although the slide is supposed to be displayed for only 200 ms, it's
duration is about 700-800 ms. I thought about changing the images'
colour depth and got bitmaps of 144 bytes instead of 1 KB each.
Unfortunately that didn't change anything.
I then used pre-release of 1000 ms and (just to test) an empty screen
of 2000 ms just before each slide. Interestingly, the durationError
was increased exactly be the pre-release time and onsetDelay was
constant. This really is a riddle to me.

First of all, the duration didn't seem to be prolonged (by
appearance). Then, why is the duration not the desired 200 ms if there
is enough time for pre-release? What makes E-Prime unable to already
establish the slide?

Maybe you have had similar problems and could help me out.

Best,
Tobias

On 15 Jan., 18:16, David McFarlane <mcfar...@msu.edu> wrote:
> Tobias,
>
> >576times inserting sub-objects is indeed too tedious, especially as

Tobias

unread,
Feb 16, 2010, 10:56:38 AM2/16/10
to E-Prime
Okay, I finally managed to solve the problem. I seperated the code in
two inlines, one to define the slide and one to call the slide.
fixation cross now comes between those and there seems to be no error
anymore.
Reply all
Reply to author
Forward
0 new messages