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
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? 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. Any kind offers? Barry ___ 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
Bypass Repeat Structure in Debug Mode
Hello my friends, Does anyone know how to bypass a lengthy repeat structure while in script debug mode? I still need the repeat to execute but I want to skip having to click through it. I need to follow the script to find out where my problem is at but this repeat for each line x structure takes a couple hundred clicks to get through. Thanks in advance, Tom Thomas J. McGrath III SCS 1000 Killarney Dr. Pittsburgh, PA 15234 412-885-8541 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Bypass Repeat Structure in Debug Mode
Hi Tom, Just place another breakpoint after the loop and run. For precise debugging a loop, you can add a line like if i = 4578 then breakpoint Best regards, Le 27 avr. 05, à 18:02, Thomas McGrath III a écrit : Does anyone know how to bypass a lengthy repeat structure while in script debug mode? I still need the repeat to execute but I want to skip having to click through it. I need to follow the script to find out where my problem is at but this repeat for each line x structure takes a couple hundred clicks to get through. Eric Chatonet. So Smart Software For institutions, companies and associations Built-to-order applications: management, multimedia, internet, etc. Windows, Mac OS and Linux... With the French touch Web sitehttp://www.sosmartsoftware.com/ Email [EMAIL PROTECTED]/ Phone 33 (0)1 43 31 77 62 Mobile 33 (0)6 20 74 50 86 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Bypass Repeat Structure in Debug Mode
Tom, Set new breakpoints in your script and run until it hits it, or add a few lines of debug script that check for certain conditions before executing a line that you can breakpoint on. Dennis On Apr 27, 2005, at 12:02 PM, Thomas McGrath III wrote: Hello my friends, Does anyone know how to bypass a lengthy repeat structure while in script debug mode? I still need the repeat to execute but I want to skip having to click through it. I need to follow the script to find out where my problem is at but this repeat for each line x structure takes a couple hundred clicks to get through. Thanks in advance, Tom Thomas J. McGrath III SCS 1000 Killarney Dr. Pittsburgh, PA 15234 412-885-8541 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Bypass Repeat Structure in Debug Mode
Try this Tom try do it catch errid if errid is ok or myresult is not right then next repeat breakpoint end try end repeat cheers Xav -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas McGrath III Sent: Wednesday, April 27, 2005 18:02 To: How to use Revolution Subject: Bypass Repeat Structure in Debug Mode Hello my friends, Does anyone know how to bypass a lengthy repeat structure while in script debug mode? I still need the repeat to execute but I want to skip having to click through it. I need to follow the script to find out where my problem is at but this repeat for each line x structure takes a couple hundred clicks to get through. Thanks in advance, Tom Thomas J. McGrath III SCS 1000 Killarney Dr. Pittsburgh, PA 15234 412-885-8541 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Bypass Repeat Structure in Debug Mode
Tom. Can't you use Step Over instead of Step Into in those cases? Not tested, but it does seem like that's what ought to happen. Alternatively, you could put in two breakpoints, one before and one after the loop. After the first breakpoint executes, hit Run in the debugger and things should stop at the next breakpoint, no? On Apr 27, 2005, at 9:02 AM, Thomas McGrath III wrote: Does anyone know how to bypass a lengthy repeat structure while in script debug mode? I still need the repeat to execute but I want to skip having to click through it. I need to follow the script to find out where my problem is at but this repeat for each line x structure takes a couple hundred clicks to get through. ~~ Dan Shafer, Co-Chair RevConWest '05 June 17-18, 2005, Monterey, California http://www.altuit.com/webs/altuit/RevConWest ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Bypass Repeat Structure in Debug Mode
Thanks Dan, Xav, Dennis and Eric, The Step Over did not seem to obey me! ;-) It didn't seem to work and well I thought I misunderstood its use. I ended up using the set multiple break points so I could hit Run and bypass that section but still have it run. The one problem is that I am testing a mouseDown over a button and can't release the mouse to go ahead and hit the run button. MouseDown with its limitations is kicking my butt right now. Big Time. I wish that at least one of the messages passed while in a mouseDown would not go back to the original control. If that was the case I would have been done three days ago. Thanks again, Tom On Apr 27, 2005, at 12:23 PM, Dan Shafer wrote: Tom. Can't you use Step Over instead of Step Into in those cases? Not tested, but it does seem like that's what ought to happen. Alternatively, you could put in two breakpoints, one before and one after the loop. After the first breakpoint executes, hit Run in the debugger and things should stop at the next breakpoint, no? On Apr 27, 2005, at 9:02 AM, Thomas McGrath III wrote: Does anyone know how to bypass a lengthy repeat structure while in script debug mode? I still need the repeat to execute but I want to skip having to click through it. I need to follow the script to find out where my problem is at but this repeat for each line x structure takes a couple hundred clicks to get through. ~~ Dan Shafer, Co-Chair RevConWest '05 June 17-18, 2005, Monterey, California http://www.altuit.com/webs/altuit/RevConWest ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution Thomas J. McGrath III SCS 1000 Killarney Dr. Pittsburgh, PA 15234 412-885-8541 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Bypass Repeat Structure in Debug Mode
The one problem is that I am testing a mouseDown over a button and can't release the mouse to go ahead and hit the run button. For debugging, it might be better to place the script in a mouseUp handler, then when it's working, change it back to mouseDown. Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution