Navneet Arora Posted January 14, 2016 Share Posted January 14, 2016 Hey guys, I am trying to create a probability of instancing multiple objects to points. I have different set of shapes so what i want is that some shapes should be there in more amount as compared to other shapes. Any idea as of how can i create this? Quote Link to comment Share on other sites More sharing options...
SreckoM Posted January 14, 2016 Share Posted January 14, 2016 How did you setup instancing? Easiest way is to use same shape several times instead of just once. Quote Link to comment Share on other sites More sharing options...
woodenduck Posted January 15, 2016 Share Posted January 15, 2016 You can create a point attribute called 'instance' who's value is the path to the object inside Houdini, or 'instancefile' with a path to the geometry on disk. If you put the below code in to an attrib vop you should get 20% of your points pointing to instance2 object and 80% pointing to instance1. if(rand(@ptnum)>0.2) { s@instance = "/obj/instance1"; }else { s@instance = "/obj/instance2"; } This video from Sidefx covers everything you need to know about instancing. Quote Link to comment Share on other sites More sharing options...
Navneet Arora Posted January 15, 2016 Author Share Posted January 15, 2016 Thanks for the reply, i will go through the video Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.