Using Switch and rand()

   6969   1   1
User Avatar
Member
4 posts
Joined: July 2005
Offline
I've just figured out that you can switch geometry. I.e. you have a sphere and box and a tube all going into a switch op and then if you select 0, 1 or 2 you get the appropriate shape.

Now… I want to copy this onto a grid so that there is a random shape on each point in the grid. I've got a grid and a switch going into a copy op but I don't know how to randomise the switch variable so that there is rand shape.

I think the switch is figured out first and then just copied onto the points of the gird. I.e. houdini only works out the switch once and then just copies… Any ideas on how to do this properly?
User Avatar
Member
7724 posts
Joined: July 2005
Offline
You might want to check this thread out from the sidefx mailing list:

http://www.sidefx.com/community/interact/mailarchive/index.php?view=IDX&exactsubject=simple%20question&perpage=20&revdate=off [sidefx.com]
  • Quick Links