Thanks! I don't know why I didn't think of that!
Make them as integers and multiply by 3.
--
David Rutten
da...@mcneel.com
Robert McNeel & Associates
On May 13, 2:46 pm, Stencil wrote:
> Hi
>
> How do I create a random number that have a certain step size?
>
> Let's say I want to create 100 random numbers within th
Hi
How do I create a random number that have a certain step size?
Let's say I want to create 100 random numbers within the interval
0-60, but I want these numbers to be steps by 3 - 0,3,6,9 etc. what
would the easiest way be to achieve that?
I know how to turn the random number into int
Hi
Thanks! But where did you upload this file?
On May 8, 4:18 pm, "//*Elizabeth Tweedale*//"
wrote:
> I uploaded a file "random_pts.ghx" that basically creates random
> numbers from the random number. The other two ways I spoke of
> previously, or to do what
I uploaded a file "random_pts.ghx" that basically creates random
numbers from the random number. The other two ways I spoke of
previously, or to do what's in the example with a lot more random
numbers, is a bit more complicated. Hope this helps somehow.
Elizabeth
On May 7, 7
airec303: This worked beautiful at first, but when i turn of the
program and reload the definition, all the random values get not so
random anymore. I don't know why that is, because I didn't fully
understand the C#-component and the seed-values, I just noticed that
it worked. What di
You could also perform a function on the list of random numbers for
the subsequent Y and Z values which could create a quite beautiful
pseudo-random solution for you by plugging the random number into
either a function created by you (fx) or to the graph editor.
Thanks, I will try this!
A common way to seed a random value is to use the system time.
You could do this with a C# component buy using the following code.
A = System.DateTime.Now.Second;
In the code block, assuming A is one of the output names. Plug the A
output of the C# block into the seed value of the random
Thanks!
The number sequence is unique but stable for each seed value. If you
do not like a random distribution, try different seed values. If you
right click on a component and select 'help', it usually has a good
description on how it works.
On May 5, 11:28 pm, Stencil wrote:
> I'm
I'm trying to create a swarm of randomly placed points within certain
boundarys, lets say a box.
To do this I use a "Point XYZ"-component and a "Random"-component set
up with a couple of sliders. I give the "Point XYZ"-component
different random X-coordinate
I'm trying to create a swarm of randomly placed points withing certain
boundarys, lets say a box.
I'm doing this by giving a "Point XYZ" x-values with a range of
numbers given by a "Random" set up with a couple of sliders. This
works fine.
Now I want to give the sa
; > > extruding, also with a randomization.
>
> > > > curves, evaluate curve to get a single point, line from point through
> > > > surface, intersect surface, move curve to intersect point, adjust
> > > > position(with random), extrude.
>
>
then
> > > adjusting in the x-axis with a slight randomization, and then
> > > extruding, also with a randomization.
>
> > > curves, evaluate curve to get a single point, line from point through
> > > surface, intersect surface, move curve to intersect point,
ne from point through
> > surface, intersect surface, move curve to intersect point, adjust
> > position(with random), extrude.
>
> > simple. right?
>
> > wrong.
>
> > the problem i am having is that when i try to randomly move the
> > geometry that is c
i am moving to a surface, then
> adjusting in the x-axis with a slight randomization, and then
> extruding, also with a randomization.
>
> curves, evaluate curve to get a single point, line from point through
> surface, intersect surface, move curve to intersect point, adjust
>
, intersect surface, move curve to intersect point, adjust
position(with random), extrude.
simple. right?
wrong.
the problem i am having is that when i try to randomly move the
geometry that is coming out of the first move, it then multiplies the
geometry by order of itself. six rectangles turn
I GOT IT...the David's snapshot picture doesnt show the different
randomseed that he set(NOT TO BLAME)! I gave them the same
one...T_T... THANK YOU VERY MUCH VISOSE~!THANK YOU ALL!
You were understood correctly. That is the effect of having the same
seed for every random component. Have you tried changing the seed
numbers as i said above? With real random numbers the top and bottom
diameters will become interior and exterior boundaries.
On Apr 5, 7:20 am, Taylor wrote
Maybe i didnt express accurately,i mean , when i did the defination as
David's picture, the random point just emerged at the surface of the
cylinder, not inside.That's the point. The 65 I set just to control
the diameters of the circle,top and bottom.So I really want to know
how to
> I don't know why, when setting them to similar numbers like '2', '3',
> patterns emerged in the point distribution. I knew that random wasn't
> completely random, but never thought i could actually distinguish
> patterns. If you want a real random l
0 to2*pi (360 degrees) means the points can be located any ware around
the cross-section of the imaginary tube. The one that sets the
thickness its where you've got 65 to 65 as the random interval. Set a
bigger interval, like 40-80. Also, change the random seed of each
random compone
Hi,David
I did almost the same as your defination from snapshot picture.but
i dont know why i couldnt make the thickness of those points which is
like yours,i think maybe is that i dont know what is the mean of 0 to
2*Pi part,here is my snapshot,http://grasshopper3d.googlegroups.com/
web/random.
Hi, I did almost the same as your defination from snapshot picture.but
i dont know why i couldnt make the thickness of those points which is
like yours,i think maybe is that i dont know what is the mean of 0 to
2*Pi part,here is my snapshot,http://grasshopper3d.googlegroups.com/
web/random.jpg?gsc
Thank you very much!
I will try it...maybe several times-_- cause I want put random box in
it and i still not very clear about the link principle...By the way,
could you tell me what is your gh version? Looks more lovely than
my~where can I download it?
Hi Taylor,
I uploaded a screen shot of a definition that creates random points
inside a Tube.
http://groups.google.com/group/grasshopper3d/web/random_cylinder.png
--
David Rutten
da...@mcneel.com
Robert McNeel & Associates
On Apr 3, 2:27 am, Taylor wrote:
> Hi all, i am a berginer,
Hi all, i am a berginer, learned a tutorial from this page
http://v.youku.com/v_playlist/f2612968o1p0.html. I want to know could
i make the random box in a specific space, like a cylinder or
something, not just in a range of box, what should I do?
Hi all, i am a berginer, learned a tutorial from this page
http://v.youku.com/v_playlist/f2612968o1p0.html. I want to know could
i make the random box in a specific space, like a cylinder or
something, not just in a range of box, what should I do?
Hi Evert,
Random how? Some ideas:
- Use 2 Random components to generate U and V points, then evaluate
the surface at those locations.
- Use 3 Random components to generate random points inside the
boundingbox of the surface (Use EvaluateBox), then project all those
points back onto the surface
Hi all,
I'm trying to create N random points on a surface.
Has any one got any idea how to achieve this?
many thanks in advance
Evert
Hi Mauer,
It sounds like you need to split your list of 200 objects randomly
into 2 lists. Here;s 2 ways of doing that.
1) Using the [Random] component, generate N random numbers, where N
equals the amount of surfaces. Then compare each random number to a
fixed value. You can use an Expression
hey,
got a problem, as still learning grasshopper: i got about 200 surfaces
and want to random select a certain percentage of them (with a
slider?) and change their colour- but how can i do that??? i guess for
you thats easy but i really have problems with unterstanding how this
could work
wrote:
> Hi all,
> Looking to divide a curve into uneven segments, but I'd like more
> control than the random divide post suggests. I've been working with
> the length between two sine curves (varying number of points,
> frequency + amplitude) to get a list of varied (but si
Hi all,
Looking to divide a curve into uneven segments, but I'd like more
control than the random divide post suggests. I've been working with
the length between two sine curves (varying number of points,
frequency + amplitude) to get a list of varied (but similar) lengths.
Now I
ain unmolested.
>
> > > If you want a hands on example, create a curve in Rhino (degree=3, 5
> > > control points, don't make it closed), and use the _List command to
> > > sneak a peek at the knot-vector. Then use the _Reparameterize command
> > > to cha
ek at the knot-vector. Then use the _Reparameterize command
> > to change the domain and use _List again to see what's changed in the
> > knot-vector.
>
> > --
> > David Rutten
> > da...@mcneel.com
> > Robert McNeel & Associates
>
> > On Jan 16, 5:35
or. Then use the _Reparameterize command
> to change the domain and use _List again to see what's changed in the
> knot-vector.
>
> --
> David Rutten
> da...@mcneel.com
> Robert McNeel & Associates
>
> On Jan 16, 5:35 am, damien_alomar wrote:
>
> > Eva
n 16, 5:35 am, damien_alomar wrote:
> Evaluating the curve in more of a geometric matter just requires
> switching out the Evaluate Curve for the Evaluate Length component
> (forgot about that one), and disconnecting the curve domain from the
> random componentthe Evaluate length com
Evaluating the curve in more of a geometric matter just requires
switching out the Evaluate Curve for the Evaluate Length component
(forgot about that one), and disconnecting the curve domain from the
random componentthe Evaluate length component will default to
evaluating the curve between 0
y spaced values in parametric space
will not be evenly placed in terms of distance along the curve.
So far the suggested solutions are really over complicating this
problem. Right now you guys aren't using the random component as its
intended and are thinking of crazy ways to get aroun
gt; > On Jan 16, 1:22 am, Chris Wilkins wrote:
>
> > > Baldino,
>
> > > I tried building your solution (since I hadn't used the Random
> > > component yet), and found a problem when there are more than 3 control
> > > points on the curve. I found that the
t; should normalize the domain range from 0 to 1.
>
> On Jan 16, 1:22 am, Chris Wilkins wrote:
>
>
>
> > Baldino,
>
> > I tried building your solution (since I hadn't used the Random
> > component yet), and found a problem when there are more than 3 con
gt;
> On Jan 16, 1:22 am, Chris Wilkins wrote:
>
> > Baldino,
>
> > I tried building your solution (since I hadn't used the Random
> > component yet), and found a problem when there are more than 3 control
> > points on the curve. I found that the domain of t
Right-click on the curve component and check 'reparametrize'. It
should normalize the domain range from 0 to 1.
On Jan 16, 1:22 am, Chris Wilkins wrote:
> Baldino,
>
> I tried building your solution (since I hadn't used the Random
> component yet), and found a problem
Baldino,
I tried building your solution (since I hadn't used the Random
component yet), and found a problem when there are more than 3 control
points on the curve. I found that the domain of the curve rises when
more control points are there, and the Evaluate Point on Curve
component would
ch
> segment being a random length. I cant see how to any of the functions
> in the curve>division section of grasshopper can do this. Little help
> please?
>
> thanks much,
>
> Alvin
Hi,
I'm just getting into Grasshopper and need some initial help.
I would like to divide a curve into a certain # of segments, with each
segment being a random length. I cant see how to any of the functions
in the curve>division section of grasshopper can do this. Little help
please?
http://groups.google.com/group/grasshopper3d/web/pointMatrixRan.ghx
a quick test with mixing up VB.NET and some grasshopper components to
generate a matrix of points affected by a small random value. Pretty
rudimentary, but just getting going on VB.NET!
Hi Andrew,
when random numbers are generated as floating point values, they are
pretty much guaranteed to be unique.
If you need a random distribution of a set of integers, then you need
to do the following:
1) Create a set of integers {A}, using the Series component. This set
will be ordered
Hi everyone,
Does anyone now how to generate a list of unique random numbers? The
random component returns duplicate numbers (when you use integers).
I'm sure there is a way to cull out the duplicates so I am left with
just the unique items in the list but ideally there would be a boolean
i
Hi Carlo,
the random number generator returns either integer or floating point
numbers. If you pick the floating point option (which is the
default),
then the chances are exceedingly small that you end up with identical
numbers. However, since only a finite number of values actually
represent
Hi Carlo,
the random number generator returns either integer or floating point
numbers. If you pick the floating point option (which is the default),
then the chances are exceedingly small that you end up with identical
numbers. However, since only a finite number of values actually
represent
53 matches
Mail list logo