Randomizing image position in a slide object

gilis giladsabo at gmail.com
Mon Feb 22 16:53:26 UTC 2010


So simple, so true...How couldn't I see that ;)
Thanks a lot!
Gilis

On 22 פברואר, 17:59, Tobias <tobias... at gmail.com> wrote:
> Hi Gilis,
>
> I think this should work: Have an attribute in the list, let's say
> "posX". Refer to the x values of the bitmaps with [posX]. If I
> understood you correctly, the y value is not to be changed. If yes,
> this can also be done without problems.
>
> Well, have an inline like this before the display appears:
>
> dim x as integer
> x = random(1,3)
> if x = 1 then c.setattrib "posX", 200
> if x = 2 then c.setattrib "posX", 400
> if x = 3 then c.setattrib "posX", 600
>
> This will set posX randomly to 200, 400 or 600 and of course you can
> change these values.
> However, if you really want to make sure that each subject had each
> condition equally often, you should go for setting this in the list.
> This is imho the more elegant way ;)
>
> Best,
> Tobias
>
> On 22 Feb., 15:44, gilis <gilads... at gmail.com> wrote:
>
> > Hi to all again,
>
> > Appologize for bothring the forum again, but it's not a too hard one I
> > hope:
> > I want the computer to randomly present the stimuli in the center,
> > left or right side
> > of the display.
>
> > I know that  it can be done easily by adding attribute ("side") in the
> > trial list with values of left right or center and then to define the
> > X axis of the image in the slide object as [side] and that's all.
>
> > However, this method means that I have to insert manualy all different
> > combinations -and it's not an elegant solution.
>
> > I tried to define side as a new attribute in an inline object this way
>
> > c.SetAttrib "side", RandomizeArray(1,3,4)
>
> > of course-it didn't work and I tried many different configurations and
> > randomization commands. With which command can I randomize left,
> > center and right?
>
> > Thanks,
> > Gilis

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