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

Nick Nimble nick at nicknimble.com
Fri Jan 4 13:33:44 EST 2013


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>
>>
>
>




More information about the Sidefx-houdini-list mailing list