[Sidefx-houdini-list] Stopping a For Each SOP

Stephen Tucker stucker at allegrodigital.com
Fri Jan 4 17:14:24 EST 2013


Not sure if I'm guessing what you're doing correctly, but maybe there's a
better way to calculate the number of times you need to run the loop than
manually entering in the x value?


On Fri, Jan 4, 2013 at 10:33 AM, Nick Nimble <nick at nicknimble.com> wrote:

> Hi Andrew,
>
> Well I'm not sure if its the ideal method, but it works very well for my
> purpose. I'm very grateful :-).
>
> Today's paradox: 'Sometimes the solution is so simple that its overlooked'
> ;-)
>
>
> Cheers,
> Nick, be Nimble
> +31 622 4243 94 | www.nicknimble.com | www.facebook.com/nicknimble
>
> On 1/4/13 6:39 PM, Andrew Lyons wrote:
>
>> not sure on getting correct break behavior (SESI?) - but perhaps using a
>> switch SOP in your foreach to output null for those iterations where
>> there's nothing to be done could at least eliminate compute time ... ?
>>
>> Cheers
>>
>> On 4 January 2013 09:34, Nick Nimble <nick at nicknimble.com> wrote:
>>
>>  Hi :-)
>>>
>>> I'm having a for each sop that iterates over geometry. aka I it goes over
>>> the same set of points an x number of times.
>>> It happens that halfway trough the iterations 'there is noting left to
>>> do'
>>> and I would like to exit/break from the loop. Very common in
>>> scripting/programming, right?
>>>
>>> I noticed the 'Stop Condition' parm on the for each node. Lovely when you
>>> want to stop at a given iteration using the stamp expression. How ever
>>> when
>>> you refer to anything that lives inside, like the number of points in a
>>> group, it seems to dive into an endless loop.
>>>
>>> My question is, is there a node that I can use inside a for each SOP to
>>> 'break' from the iterations?
>>> Any suggestions are more than appreciated :-)
>>>
>>> --
>>> Cheers,
>>> Nick, be Nimble
>>> +31 622 4243 94 | www.nicknimble.com | www.facebook.com/nicknimble
>>>
>>> ______________________________****_________________
>>> Sidefx-houdini-list mailing list
>>> Sidefx-houdini-list at sidefx.com
>>> https://lists.sidefx.com:443/****mailman/listinfo/sidefx-****
>>> houdini-list<https://lists.sidefx.com:443/**mailman/listinfo/sidefx-**houdini-list>
>>> <https://lists.**sidefx.com:443/mailman/**listinfo/sidefx-houdini-list<https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list>
>>> >
>>>
>>>
>>
>>
> ______________________________**_________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/**mailman/listinfo/sidefx-**houdini-list<https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list>
>



-- 
Cheers!

Stephen G. Tucker
http://www.allegrodigital.com



More information about the Sidefx-houdini-list mailing list