Copy to Points with random scale in each direction

   19302   2   0
User Avatar
Member
1 posts
Joined: Jan. 2018
Offline
Hello, first post here.

I'm trying to do something that seems simple but I just cannot figure it out.

I'd like to take a piece of geometry and copy it to points, and randomize scale in each direction to give it some variation. I've tried using rand() a number of different ways, in a for-each loop, but any time I apply a random change to scale in X, Y and Z each copy ends up looking identical.

It's probably dead easy but I'm stuck!

Thanks in advance for any help.
User Avatar
Member
17 posts
Joined: March 2015
Offline
You have to randomize v@scale attribute on points that You want to copy You geo to.

You can use rand(float seed) function, and use different value for seed argument for each or use some kind of noise, like
v@scale = fit(vector(anoise(v@P)), set(0,0,0), set(1,1,1), set(0.2,0.2,0.2), set(1.8,1.8,1.8));
User Avatar
Member
14 posts
Joined: Sept. 2018
Offline
Drop an “Attribute Randomize” node before the “Copy to Points” node and change the Attribute Name from “Cd” to “scale”. Then you'll have min-max values and you can drag the “Global Seed” slider (from the “Options” tab) until you're satisfied with the variation (and maybe not use min-max from 0 to 1 on all axes, but something like 0.5 to 1, which gives it a more subtle variation).
  • Quick Links