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

Andrew Lyons tstexture at gmail.com
Fri Jan 4 12:39:03 EST 2013


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



-- 
===============================================
Andrew D Lyons | Digital Artist | http://www.linkedin.com/in/tstex
===============================================



More information about the Sidefx-houdini-list mailing list