Anemone iteration Loop - Grasshopper2024-03-29T14:14:02Zhttps://www.grasshopper3d.com/forum/topics/anemone-iteration-loop?commentId=2985220%3AComment%3A1785475&x=1&feed=yes&xn_auth=noYou're saying
The time buffer…tag:www.grasshopper3d.com,2017-07-18:2985220:Comment:17854752017-07-18T11:07:31.998ZMateusz Zwierzyckihttps://www.grasshopper3d.com/profile/MateuszZwierzycki
<p>You're saying</p>
<blockquote><p><span>The time buffer has been added to emulate the delay that might be encountered if the VB program was doing some complex calculation.</span></p>
</blockquote>
<p></p>
<p>By default the Time Buffer is working in a bit different way than that.</p>
<p>There are two options to fix your issue, I'm not totally sure about the second one. </p>
<p></p>
<p>Option 1.</p>
<p>The Time buffer has to be <strong>directly </strong>connected to any of the D inputs of the…</p>
<p>You're saying</p>
<blockquote><p><span>The time buffer has been added to emulate the delay that might be encountered if the VB program was doing some complex calculation.</span></p>
</blockquote>
<p></p>
<p>By default the Time Buffer is working in a bit different way than that.</p>
<p>There are two options to fix your issue, I'm not totally sure about the second one. </p>
<p></p>
<p>Option 1.</p>
<p>The Time buffer has to be <strong>directly </strong>connected to any of the D inputs of the Loop End. You can add an additional input if you need. It'll hold the data and prevent the Loop End from sending it back to the Loop Start. If there is anything in between (even a component producing a null value), it will still provide the Loop End with some value (null), and will trigger the next iteration.</p>
<p></p>
<p>Option 2. </p>
<p>Switch the Time Buffer to regular mode. By default it is Multithreaded, which means it let's GH do whatever GH wants while it holds the data internally. This will force the current thread in which GH works to Sleep for the specified time. That way you're actually getting what you want in your description (simulating some long process)... unless you're already doing that (no visual indication to deduct that, my fault).</p>
<p></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769307104?profile=original" target="_self"><img width="300" src="http://storage.ning.com/topology/rest/1.0/file/get/2769307104?profile=RESIZE_320x320" width="300" class="align-full"/></a></p>
<p></p> I will implement this modific…tag:www.grasshopper3d.com,2017-07-18:2985220:Comment:17853552017-07-18T09:43:53.097ZWT4https://www.grasshopper3d.com/profile/WT4
<p>I will implement this modification to my script and get back to you. Thank you</p>
<p>I will implement this modification to my script and get back to you. Thank you</p> Wait a minute - I looked agai…tag:www.grasshopper3d.com,2017-07-18:2985220:Comment:17852572017-07-18T09:27:07.414ZPieter Segerenhttps://www.grasshopper3d.com/profile/Pieter
<p>Wait a minute - I looked again, and I think you are only allowed/supposed to connect the [Time Buffer] between Anemone's Data Out/Inputs (D0, D1, D2,...), and not to the E (Exit) Input. Is that it?</p>
<p>Wait a minute - I looked again, and I think you are only allowed/supposed to connect the [Time Buffer] between Anemone's Data Out/Inputs (D0, D1, D2,...), and not to the E (Exit) Input. Is that it?</p> I see, then I don't know (wha…tag:www.grasshopper3d.com,2017-07-17:2985220:Comment:17851442017-07-17T15:50:34.942ZPieter Segerenhttps://www.grasshopper3d.com/profile/Pieter
<p>I see, then I don't know (what to say). Too abstract to follow for me.</p>
<p>I see, then I don't know (what to say). Too abstract to follow for me.</p> The search for the first occu…tag:www.grasshopper3d.com,2017-07-17:2985220:Comment:17848722017-07-17T15:50:19.928ZWT4https://www.grasshopper3d.com/profile/WT4
<p>The search for the first occurrence of the number 9 is just a simplified version of the task that I need to do. In reality the list of numbers on the left is fed into a complex set of calculations, the results from which is used to determine whether to proceed with the iteration.</p>
<p></p>
<p>The search for the first occurrence of the number 9 is just a simplified version of the task that I need to do. In reality the list of numbers on the left is fed into a complex set of calculations, the results from which is used to determine whether to proceed with the iteration.</p>
<p></p> Do you just need to find the…tag:www.grasshopper3d.com,2017-07-17:2985220:Comment:17851232017-07-17T15:00:30.951ZPieter Segerenhttps://www.grasshopper3d.com/profile/Pieter
<p>Do you just need to find the index of the first occurance of 9? If yes, use [Member Index] from the Sets>Sets tab, plus a [List Item].<br/><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769305920?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769305920?profile=original" class="align-full" width="648"/></a></p>
<p>Do you just need to find the index of the first occurance of 9? If yes, use [Member Index] from the Sets>Sets tab, plus a [List Item].<br/><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769305920?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769305920?profile=original" class="align-full" width="648"/></a></p>