Random values for a Vpipe grasshopper componement

hello, i need to use Vpipe Componement… but i don’t understand how it works…

in fact i need with multiple closed curves to make pipes, with random value for radius, i search, but it’s very difficult to work with domaine, range, random… if some one can help me…

I understand that i can put a list of radius values in ‘R’, i understand that i Have to put a list of position in the domaine of the curve in ‘t’, but i don’t understand how i can generate a random list of position and radius for each curves…

i search again, but random is no easy… i try it:


but for each item, i’ve got the same values… how can i have random values

i try to use the point deform tool but I don’t understand how it works…
when I use it it keep the origins curves, I start withe 2 planr closed curves, and it return 4 curves, with the 2 first curves.

Hi,

without seeing the curves that you have, could this work for you?


Random values.gh (9.8 KB)

You are getting the same values with the Random component because by default the Seed input only has one value, to have different values, you need multiple inputs in the Seed. They are random so you can create them in any way. In this case I created them with a series that has as many steps as curves that you have.

Regarding the Point Deform component you are getting two and two curves because you are not grafting the curves.

Yes, that’s it!!! thank you… i don’t understand what’s is grapht an flatten i have to unedrstand what it is… but maybe you can help me, i done that:


but there is nothing in output.

but this works:

i think it’s in the second capture I Wrote 0 in first, Vpipe need a radius for the 0 of curve domain, how can i force Random to have 0 in first value and the end of domain at the end… and same for radius I need the same value at the start and the end of pipe, no?

I found!! ok it’s nice now, i’ve just a problem now… with Vpipe i’ve got a list of random values for parameter an a list of random values for radius, but if the radius value at start, is really different of the radius valu at the end, and the random last value of parameter is really near the end of the curve, it’s not really good:


an idea? maybe limit the random value of parameter between 0.15 to 0.85?

Is it possible to limit the random values so that there is at least 0.2 between each value?

Here is my solution (but you were faster) :sweat_smile:.
Pipe variable.gh (14.1 KB)

You are getting that error at the beginning/ end because they are periodic curves the first and last value of the radius have to be the same. To avoid this, in the parameters input, just avoid writing the 1 as it will be equivalent to 0 (I am assuming that you are reparameterizing the curve).

Regarding flattening and grafting, there are multiple videos in Youtube. Here is one example from ParametricCamp.