How to achieve while loop in SOP not VOP ,thanks

   3693   3   1
User Avatar
Member
129 posts
Joined: 1月 2013
Offline
How to achieve while loop in SOP not VOP ,thanks
User Avatar
Member
224 posts
Joined: 11月 2008
Offline
You could use the foreach SOP and use a stop condition: http://www.sidefx.com/docs/houdini13.0/nodes/sop/foreach [sidefx.com]
Senior Technical Artist Guerrilla Games
User Avatar
Member
129 posts
Joined: 1月 2013
Offline
cklosters
You could use the foreach SOP and use a stop condition: http://www.sidefx.com/docs/houdini13.0/nodes/sop/foreach [sidefx.com]
Thank you, but it's not I want."stop condition“ can not use the variable inside the foreach sop.maby I should consider python script.
User Avatar
Member
102 posts
Joined: 3月 2013
Offline
cklosters
You could use the foreach SOP and use a stop condition: http://www.sidefx.com/docs/houdini13.0/nodes/sop/foreach [www.sidefx.com]
Thanks Cklosters, that's really want I need!

I just tried this way, set loop iteration a high number(like 1000)and write a bit expression for “stop condition” like:
detail(“../some_node_inside_loop”,“stop”,0) == 1

than when this detail attribute be 1 the forloop will stop.
  • Quick Links