re. Repeat structure
barryb at libero.it
barryb at libero.it
Mon Sep 22 23:17:45 EDT 2008
Context:
> I am trying to make a repeat structure that deals with an >unknown numb=
er of images located along a given line.
> The line is the diagonal of a currently selected group.
> How can I define that line and does it have to be actually >be drawn be=
fore referring to it?
Thank you Colin, Eric, Joe and Ken for your considerations.
Sorry I am always light years behind the speed with which you all reply b=
ut I usually wade through about 4 batches of UseRev posts every evening.
Yes, I had instinctively typed bottomRight but then saw an example in the=
docs (2.8) that said rightBottom so I changed it (although I have never =
heard that used in English). Now, today, I can only find bottomRight in t=
he Dictionary (2.9)!
Luckily, my base image is a thin rectangle that runs diagonally along the=
line I was describing and the images to be dealt with are placed along i=
t, so this excludes the transparent part of the rect. Unluckily, they are=
also placed over holes in the PNG image itself so Rev might not detect t=
hem. Thus the idea of describing a line.
I was hoping to avoid checking every image that fell within the rect of t=
he larger image but maybe that will not take up too much time - once I ge=
t the script working.
Could I give a double definition in the repeat such as: images within the=
rect of myGroup and the name of which contains "aName"?
As far as the Dictionary being confusing, look up the Example for Break i=
n the Summary(2.8). First it says that this breaks out of the entire Swit=
ch and then out of the case. What's more the first word in lines 1 and 2 =
of the example script seem to be inverted!
again, lots of thanks
Barry Barber
More information about the use-livecode
mailing list