How to use foreach sop?

   3362   5   1
User Avatar
Member
83 posts
Joined: Dec. 2005
Offline
How to use foreach sop?
User Avatar
Member
1390 posts
Joined: July 2005
Offline
newPeak
How to use foreach sop?
http://www.sidefx.com/docs/houdini9.5/nodes/sop/foreach [sidefx.com]
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
I asked this a while ago ( no reply ), I copied one of the examples and could not get it to work ………..
Gone fishing
User Avatar
Member
1390 posts
Joined: July 2005
Offline
circusmonkey
I asked this a while ago ( no reply ), I copied one of the examples and could not get it to work ………..

Just checked both examples and they both work at least in H9.5.211. ForEach works on:

- primitive attribute basis (process input geometry grouped by equal attribute value)
- primitive group basis (process every primitive group separately)
(notice group mask parameter which is empty by default and need at least “ * ” to do anything)
- user defined number basis (thus you can proceed arbitrary action on a whole geometry x number of times)

Here is group and arbitrary number examples (sorry, not very spectacular)

Attachments:
foreach.hip (68.6 KB)

User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Thanks so much for the example. still confused …

There's an example on the cmi effects td vidoe , where peter uses a clip sop to cut up geometry. Apart from the fact what hes copying from the foreach sop in the video doesnt exist in Houdini ….. everything would be good.

what ever I do I get

Error: “ Invalid source foreach1:each1.”


r
Gone fishing
User Avatar
Member
519 posts
Joined:
Offline
post your hip file so we can have a look at it.
  • Quick Links