EG - a bunch of points comprising of cubes, spheres and donuts.
- get a bunch of points!
- give them an id attribute eg 1,2,3,4..which will represent cube,sphere,donut. The attribute randomise node is quite good for this. There is a setting called Discrete Values which you can tweak with weighting. Eg. 20% value 1, 40%value 2, 40% value 3. Lets call the attribute ID
- Create a For-Each-Loop network. Set the mode to "points". By default it is set to process "pieces". Uncheck the use "name" bit. This is to do with the fracturing rigid body workflow.
- Connect the cube, sphere and donut to a switch node. In the index box type: point("../foreach1/",0,"ID",0) this references the current point being processed by the foreach loop and reads it's corresponding ID value.
- Inside the foreach loop add a "copy to points" node. Connect the switch node to this.
- This should all work now!
No comments:
Post a Comment