Hi dear community,
For a personal project, where I create spheres of different sizes following a spline (a kind of necklace) I would like to know if it was possible to have a little picture or representation drawing on the gh canvas associated to the different value list components of my definition (each value list components represent a pearl of the necklace)
For example :
A = little red sphere
B = Medium red sphere
C = Big red sphere
I mean that would allow me to have directly on the gh canvas the vision and a representation of the spheres sequence… (see the attachee below)
(In my dream, I would like to have a tools where I just have to move spheres’s miniatures in the gh canvas and then it gives in Rhino on the Spline the good spheres order with the good size and the good space between the spheres…
my project :
SPHERES_ALONG_SPLINES_INPUT_VALUE_LIST.3dm (804.2 KB)
SPHERES_ALONG_SPLINES_INPUT_VALUE_LIST.gh (71.0 KB)
If the spheres don’t have to change size interactively, you can create a sketch on the GH canvas, send the curves to the Rhino viewport, draw nice circles and load them back to the GH canvas. I haven’t found a way to fill the curves.
Maybe this is a bit more intuitive?
instead of A,B,C,D you have 0, 1, 2, 3 in the gene pool, and no looping
it becomes much easier to add/change types without editing 20+ value list components
 or by typing ABCDs
Hey @martinsiegrist , thank you very much for your feedback! I love how funny this tool is! hower indeed, I was more lookin for an interactive approach where the circles (in your example) are representations of the differents values lists components… I mean, for example if all the value lists components named “A” are the bigger spheres on the spline the miniature would be a big sphere etc… I’m looking for responsive drawings/miniatures yes for sure…
Thank you very much @inno for your feedback, your definition seems to be a kind of little revolution compared to mine !
It looks great but for my project all the bolean intersections between each spheres has to be equal, so as you can see in my definition instead of your “evaluate lenght” component I use “divide distance” (In the “loop” chapter at the top of the gh canvas) which give the points where each center of sphere has to be if I want that all the same bolean intersections diameter between them, even if they dont have the same sizes… that’s an important constraint I have to follow (it’s because I need to pass a pipe with specific diameter through all the spheres)…
thank you very much
yep, you are right about the loop then
but I honestly don’t get how the lists are “pre-built” in such a way the diameter of the sphere-sphere intersection circle is constant
the relation depends on 2 diameters, not just one, doesn’t it?
@inno It’s really clever dude… your a kind of genius… I’m Impressed :o your definition is perfect for what I try to reach, I guess that the “formula part” is a way to measure the intrication sphere/sphere ? that’s how you define the bolean intersection ? the best way I found until now to keep this constant between the intersection spheresphere was to give as input the relations distance (AB) littlespherecenter to mediumspherecenter, (BB)mediumspherecenter to mediumspherecenter…(BC) medium spherecenter to bigspherecenter and so on… both our definitions gives the same results but your way is way more logic and ergonomic… <3
@inno how do you learn to write those kind of “maths expressions”, I would like as well
yes, the formula part finds the distance between the spheres in order to get a given intersection diameter
Fennec Visualize Script to convert your components to Rhino shapes. how to do this
Use the component called Visualize script