Jump to content

Recommended Posts

As it says in the DOC, we can write an expression inside the stop condition field to stop the loop.

OK, I used a npoints expression and I referred to the end-block node because it's the only node that accumulates the points and prims I think, but I get an infinite recursion error, Please help me.

BEST REGARDS.

ForLoop.png

ForLoopError.png

Share this post


Link to post
Share on other sites
Posted (edited)

Try reaching one node past the end of the loop or before, like sphere1. Use an absolute path. I don't think the foreach_end node can present its final result while calculating it.

Untitled-1.jpg

Edited by Atom

Share this post


Link to post
Share on other sites
19 hours ago, Atom said:

Try reaching one node past the end of the loop or before, like sphere1. Use an absolute path. I don't think the foreach_end node can present its final result while calculating it.

Untitled-1.jpg

I did that, the expression successfully change the stop condition from 0 to 1 and vice versa, but the loop didn't stop.

Share this post


Link to post
Share on other sites
On 2022/4/23 at 8:05 AM, amin.khormaei said:

does anyone know what's the problem?

try doing accumulation mannually in loop,it seems the legacy loop SOPs are more handy than new ones in loop controls

loop_stop_condition_od.hip

  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)
3 hours ago, Benyee said:

try doing accumulation mannually in loop,it seems the legacy loop SOPs are more handy than new ones in loop controls

loop_stop_condition_od.hip

it worked finally. Thank you.

Edited by amin.khormaei

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×