re. Repeat structure
Context: I am trying to make a repeat structure that deals with an unknown number 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 before 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 but 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 the 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 it, 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 them. Thus the idea of describing a line. I was hoping to avoid checking every image that fell within the rect of the larger image but maybe that will not take up too much time - once I get 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 in the Summary(2.8). First it says that this breaks out of the entire Switch 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 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: repeat structure
On Sep 21, 2008, at 10:31 AM, [EMAIL PROTECTED] wrote: For some reason the script Editor does not colour rightBottom red unless the words are separated but then the error is Expression: bad factor - so I am leaving it black. If topleft works you would expect to need bottomright, not rightbottom. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: repeat structure
Bonjour Barry, If I understand the problem (not sure), you want to deal with all images that are more or less inside a group boundaries: repeat with i = 1 to the number of images if intersect(image i,group My Group) then select image i end repeat BTW, and letting apart your syntax error when using rightBottom, repeat for each form needs something like 'repeat for each chunk var in list You can't use it as you do it below. Hope this helps. Le 21 sept. 08 à 16:31, barryb@@libero..it a écrit : I am trying to make a repeat structure that deals with an unknown number 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 before referring to it? My attempts so far include: - the rect of the selectedObject --the group put the points topLeft and rightBottom of it into tSightLine repeat for each image within tSightLine select it the rest of my rubbish -- Of course, the second line throws an error (unquoted literal) but I cannot find where to put the quotes it is asking for. For some reason the script Editor does not colour rightBottom red unless the words are separated but then the error is Expression: bad factor - so I am leaving it black. Best regards from Paris, Eric Chatonet. Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/ Email: [EMAIL PROTECTED]/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: repeat structure
Actually, I'm using several calls that utilize rightBottom as the second parameter; along with topLeft as the first one, though there seems to be some confusion as to the arguments one provides in order to get everything to do what you expect. Either I'm confused - a distinct possibility - or there are some inconsistencies in Rev - another possibility. Now that I've got everything to work as I want, I just hope Rev doesn't change anything, so I would hope that we all learn to live with it as is. IMHO, Joe Wilkins On Sep 21, 2008, at 7:35 AM, Colin Holgate wrote: If topleft works you would expect to need bottomright, not rightbottom. -- Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html Joe Lewis Wilkins [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: repeat structure
On Sep 21, 2008, at 11:12 AM, Joe Lewis Wilkins wrote: Actually, I'm using several calls that utilize rightBottom as the second parameter; along with topLeft as the first one, though there seems to be some confusion as to the arguments one provides in order to get everything to do what you expect. Either I'm confused - a distinct possibility - or there are some inconsistencies in Rev - another possibility It appears so. In the user guide rightbotton appears twice, and bottomright appear eight times. Only bottomright shows as colored in the script window, rightbottom remains black, even if it does happen to work for you. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: repeat structure
On Sep 21, 2008, at 8:37 AM, Colin Holgate wrote: On Sep 21, 2008, at 11:12 AM, Joe Lewis Wilkins wrote: Actually, I'm using several calls that utilize rightBottom as the second parameter; along with topLeft as the first one, though there seems to be some confusion as to the arguments one provides in order to get everything to do what you expect. Either I'm confused - a distinct possibility - or there are some inconsistencies in Rev - another possibility It appears so. In the user guide rightbotton appears twice, and bottomright appear eight times. Only bottomright shows as colored in the script window, rightbottom remains black, even if it does happen to work for you. Probably because I'm using them as local vars rather than keywords, having changed topLeft to topLft -- Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html Joe Lewis Wilkins [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: repeat structure
Hi gang, I am trying to make a repeat structure that deals with an unknown number 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 before referring to it? If you only care about the images within a group that *intersect a line* and NOT all the images in the group then you have a couple of issues to deal with. The first is that the intersect function uses the object's *bounding box* to test the intersection, so you could have an image that didn't look like it was touching the line, but intersect() returned true. The second is that if your image doesn't take up the full bounding box of the image object it's in, you'd also not want to have a hit if a blank area of the image encountered the line. So you'd have to run a different algorithm that took into account both of these things; perhaps someone on the list already has this in their bag o' tricks and would be wiling to share? Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution