is there any solution for make a condition in sop level ? for example i have a loop (based on connectivity) and inside that i want to add pollycap on only objects which have unshared edge.
is this possible to do it in houdini sop ?
thanks
Condision in SOP ?
2177 3 0-
- vrman
- Member
- 39 posts
- Joined: Sept. 2013
- Offline
-
- traileverse
- Member
- 369 posts
- Joined: Nov. 2015
- Offline
You could try to use a wrangle or VOP network (use conditional statements there) and use some sort of attribute setup then use the results of that to drive the polycap. Something like that.
Maybe you could also try using expressions and maybe a switch node. Just some thoughts.
Maybe you could also try using expressions and maybe a switch node. Just some thoughts.
Edited by traileverse - April 5, 2018 12:00:50
hou.f*ckatdskmaya().forever()
-
- jsmack
- Member
- 8177 posts
- Joined: Sept. 2011
- Offline
The polyfill node respects groups to control which geometry is capped. VOPs/wrangles won't work because capping cannot be controlled with attributes. A switch can be used in the general sense for flow control, but is probably not a good choice here if you simply want the cap applied to a subset of geometry. However, if your condition is true for all geometry in a given iteration of your loop, then a switch is the perfect solution.
-
- vrman
- Member
- 39 posts
- Joined: Sept. 2013
- Offline
i think im asking wrong question , i want to find which object has unshared edge and add some sop on them , its not about only polycap . for example i want to do something on objects with unshared edges and do something different on other object which has no unshared edge. and for that i need if statement .
jsmackyes i think switch is the perfect solution too . thanks alot jsmack
The polyfill node respects groups to control which geometry is capped. VOPs/wrangles won't work because capping cannot be controlled with attributes. A switch can be used in the general sense for flow control, but is probably not a good choice here if you simply want the cap applied to a subset of geometry. However, if your condition is true for all geometry in a given iteration of your loop, then a switch is the perfect solution.
-
- Quick Links


