Grasshopper

generative modeling for Rhino

# How can I do random heights for a number of surfaces??? NEED HELP ASAP

Need help ASAP

I want to give a number of surfaces different random heights, how can i do that? I use the random component and the extrude component, but when I connect all the surfaces to the extrude component, the extrusion is the same for all the surfaces.

thanks! (im new to grasshopper)

Tags: height, random, surfaces

Views: 763

Attachments:

### Replies to This Discussion

The random component (the N input) asks for the number of values

THANK YOU SO MUCH IT WORKED!
BTW is there a way to extrude in the direction of the surface? with what component should I replace the vector? THANKS AGAIN!!
oops sorry, heres what I mean, not a extrusion in the direction of the surface, but in the direction of the louvers I got. Bcuz they all grow in the z axis
Attachments:
ok so this may not be the best method, im sure theres a better way to do this, but this is all i could think of atm hope it helps I've incorporated the random component for what you need, you can also control the random domain by increasing the upper limit on the slider

it kinda works, but the offset goes below the plane that I want, how can I limit that?

Picture 1) shows what I want it to do, for all the surfaces, so no offset goes below the intial surface

Picture 2) shows what the definition is doing

Attachments:
You have the inputs backwards for the domain, lets say you want to randomly extrude from 12-20 values you would set the A input of the domain to 12 and the B to 20. Then you'll have however many random extrusions ranging from 12 to 20. Hope that clears things up. Good Luck
I dont know what to do anymore =S , I did what you say, it works in other surfaces, but when i try it in the louvers, this is what happens:
Attachments:
its working but inversely, you have to negate the values somehow to make it go in the right direction, try playing wit the domain and making negative values for both inputs and see if that works, otherwise post your .3dm file and definition and ill take a look at it

• View All