Randomization on Scattered Points

   892   0   0
User Avatar
Member
96 posts
Joined: Oct. 2013
Offline
Hi,

in the attached file, I created a heightfield, scattered points on it, created two piece of geometry with a switcher that are scattered over it. I want to use the for each loop to randomize parameters on the box size, switch nodes etc, but I don't have the code quite right. I would like some values to be between the range of 0-1 while others need to be random per point. I have been playing around with different bits of code, but none is quite right.

point(“../foreach_begin1”, 0, “piecenum”, 0)

point(“../scatterPlants/foreach_begin1”, 0, “piecenum”, 0)

Image Not Found


thanks,

Adnan

Attachments:
scatterRandomTerrain.hiplc (1.8 MB)

  • Quick Links