How to achieve while loop in SOP not VOP ,thanks
3790 3 1- Tesla_s_fan
- Member
- 129 posts
- Joined: Jan. 2013
- Offline
- cklosters
- Member
- 224 posts
- Joined: Nov. 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
- Tesla_s_fan
- Member
- 129 posts
- Joined: Jan. 2013
- Offline
cklostersThank you, but it's not I want."stop condition“ can not use the variable inside the foreach sop.maby I should consider python script.
You could use the foreach SOP and use a stop condition: http://www.sidefx.com/docs/houdini13.0/nodes/sop/foreach [sidefx.com]
- igou
- Member
- 102 posts
- Joined: March 2013
- Offline
cklostersThanks Cklosters, that's really want I need!
You could use the foreach SOP and use a stop condition: http://www.sidefx.com/docs/houdini13.0/nodes/sop/foreach [www.sidefx.com]
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