Object groups randomly copied to scattered points ?

   745   1   0
User Avatar
Member
1 posts
Joined: Jan. 2018
Offline
Hi I have an imported alembic file that I have an assemble sop added to which gives me its groups,
My question is how do I copy the object groups randomly to a point scattered.

Andy Czilok
User Avatar
Member
731 posts
Joined: Dec. 2006
Offline
Take a look at the foreach loop example here:

https://www.sidefx.com/docs/houdini/copy/tutorial_stamping.html [www.sidefx.com]

Once you have wrapped your head around that….

Use a switch as the first input to the copy SOP. Into that, plus as many delete nodes as there are groups in your geo, with each delete deleting all but one group each. Into that del node you would have the original output you described above.

Now use the techniques described in the tut to randomly choose a different index in the switch SOP.

Sean
Sean Lewkiw
CG Supervisor
Machine FX - Cinesite MTL
  • Quick Links