Switching between geometries in a copy SOP

   7787   3   2
User Avatar
Member
2 posts
Joined: Nov. 2012
Offline
I have three basic geometries that are copy stamped along the points of a grid.
What I need is for them to alternate randomly.

So far I have the three, for clarity's sake lets say a pyramid cube and sphere, plugged in to a switch. I can manually alternate between them using value
0=pyramid
1=cube
2=sphere

When I copy stamp, only pyramids, cubes, OR spheres show up. How can I make all three show up simultaneously?

Thanks!

Attachments:
copy sop random switching.jpg (693.5 KB)

User Avatar
Member
696 posts
Joined: March 2009
Offline
Sorry, I misread your question in the first attempt to respond. You'll have to use copy/stamping technique. This video here shows exactly how to do it:

http://www.sidefx.com/index.php?option=com_content&task=view&id=881&Itemid=254 [sidefx.com]

If you still have questions afterwards either ask here or search the forum as it's a popular theme.
Cheers

PS: Next time would be great if you could edit your image so that it fits the forum layout…
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
User Avatar
Member
258 posts
Joined:
Offline
You can stamp this expression into a switch.

int(rand($PT) * 10) <<< in this case 10 is the number of differing inputs
User Avatar
Member
2 posts
Joined: Nov. 2012
Offline
The video is a good begining video clear and to the point.

Since I was trying to switch between 3 specific geometries in a switch “int(rand($PT) * 10) ” within the copystamp function worked.

Thanks sl0throp and rafaels!
  • Quick Links