What I want to know how to do is have my scripts run on each iteration of an instance so I can randomize the initial creation states(like having a random size and rotation), but I can’t figure out how to do it since I wasn’t able to just directly type my expressions into the channel fields under the instance tab.

So now Im trying to use an evaluate dat but I’m stuck I cant figure out how to get a unique randomized value for each row other than manually typing an expression on each row. Im trying to use the tdu.rand but Im not sure how to tell it to run on each table cell individually. Thanks for any help!

instancingQuestion.tox (3.76 KB)

hi umbrellaBuddha,

There are a few ways you might run at this. One method would be to use the noise CHOP to generate a random list of numbers. You need to do a few things like limit the number of samples to make sure that it matches your number of points, and determine the appropriate scaling, but that’s certainly an option.

If you’re using an evaluate DAT and the tdu module, you’ll need to give it a unique seed for every row. Each row has a number, and you can use this to retrieve that integer.

`me.inputRow`

Using the random module with this would look something like this:

`tdu.rand(me.inputRow)`

I’ll include examples of both for you.

cheers,

M

instancingQuestionMR.1.toe (7.15 KB)

Amazing… thanks so much!! I got it working the way I wanted and I’m embarrassed to say I think the only thing I was doing wrong before was I forgot to match the samples from my random noise chop to my line points which I see u did. Using a math chop I merged/multiplied the random noise with my rotation channel and now I have randomized rotation:)