FOR Each ...

   4174   3   2
User Avatar
Member
1104 posts
Joined: Aug. 2008
Offline
When I set a For Each SOP to “Each Group” is the FORVALUE gone ? or will it itterate this value for each group ? and could it be used in a expression somethinglike..

point(“../null”, stamp(“..”, “FORVALUE”, 0), “P”, 0)

where “null” is the 2nd For Each input connected to a bunch of points.

/M
/M

Personal Houdini test videos, http://vimeo.com/magnusl3d/ [vimeo.com]
User Avatar
Member
1104 posts
Joined: Aug. 2008
Offline
Ops maybe I spoke to soon, found a thread where it apparently would be Michael Bay cool if the FORVALUE was itterated in group mode.

Owell I figured that putting

piece_`stamp(“..”, “FORVALUE”, 0)`

in the Group editbox of the transform SOP I could achive the same thing I was looking for.

/M
/M

Personal Houdini test videos, http://vimeo.com/magnusl3d/ [vimeo.com]
User Avatar
Member
1104 posts
Joined: Aug. 2008
Offline
Heh spamming my own thread

But..is it just me or..

is it faster to copy stamping with a arg+primgroupmask expression in a delete SOP to move group's of geometry than doing it in a for each SOP ?

..I was kinda hoping that the For each approach would be faster but maybe I did it wrong, or is the for each SOP sorta slow in general ?

/M
/M

Personal Houdini test videos, http://vimeo.com/magnusl3d/ [vimeo.com]
User Avatar
Member
2199 posts
Joined: July 2005
Online
I would say they are pretty much the same, and both are slighty slow if you have a large amount of geometry. Way slower than the time for a native sop to do the same thing but way faster than not being able to do it at all!
The trick is finding just the right hammer for every screw
  • Quick Links