objects randomly instancing / copying through a switch

   6355   4   0
User Avatar
Member
191 posts
Joined: Aug. 2008
Offline
Hey guys,

how would I instance 3 Objects randomly on scattered points?

And how would I copying 3 geo's randomly in an object through a switch and a copy node on scattered points?


Thanks
User Avatar
Member
7715 posts
Joined: July 2005
Online
I'm not sure about your question. Have you tried just using the Instance object and scattering points inside it? No need to use the Copy SOP.
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Look on my site, instead of $PT you can use instancepoint()

Rob
Gone fishing
User Avatar
Member
191 posts
Joined: Aug. 2008
Offline
I have made two hip files.

In the first one I tried to instance 3 objects randomly over the scattered points. But I don't know how to do it.

In the second one I want to give the switch node a random value between 1 and thredd and also want copy the objects randomly over the scatterted points.

Thanks

Attachments:
instancing_three_obj_randomly.hip (115.4 KB)
copying_three_obj_randomly.hip (101.7 KB)

User Avatar
Member
8551 posts
Joined: July 2007
Online
for instancing you can use instance string attribute containing path to object for each point

for copying you need to use stamping to switch the input of the Switch sop
here is the example of setup where you can plug any number of inputs to switch sop and they all will be used to randomly distribute over the points

of course you can combine those methods in one file where copying will be used to preview proxy versions of objects in viewport and instancing will be used for render

Attachments:
copying_three_obj_randomly_fix.hip (103.4 KB)
instancing_three_obj_randomly_fix.hip (168.0 KB)

Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links