foreach SOP question

   1754   1   0
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
in the attached simple example I have
a grid of polys - group_0-80
a number of tubes - group_0-80
I'm feeding both into a foreach SOP
inside the foreach SOP I'm trying to adjust the TY of each poly based on the opdigits of the group…but it's not working…
I'm using rand(opdigits(ch(“../each1/group”)))/3 in the TY of a transform…

any help would be great…I always get into trouble with the foreach SOP….

Attachments:
foreach_cookie.0.hip (55.0 KB)

Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
330 posts
Joined: July 2007
Offline
hi ,

this expression seems to work ;

rand( stamp( “../../foreach1”, “FORIDXVALUE”, 0 ) )/3
except the things that cannot be seen , nothing is like it seems .
  • Quick Links