algorithmic modeling for Rhino
Hello everyone,
I am new to this forum. My name is Ben, I am a Design-Student from Bremen, Germany. Right now I´m workin on my Bachelor-Project and that is what leads me here. I learned Grasshopper on my own, so be gentle with my programming ;) .
Now my problem:
I built a chair-generator, where I can randomize the different components of the chair via sliders. Now I want to interbreed two chair configurations. So I wanna be able to either choose one of the „parents“-value or the middle between both values. As you can see in my file, I found kind of a solution for this (marked by the 3, in the picture), but its quite complicated and time consuming, especially considerung, that I want to do this proces with several generations of interbred chairs. Do you know any way to maybe automatize or simplify this process?
Greetings,
Ben
Picture explanation:
First chair-data (as visualized in Rhino)
Second chair-data
My approach to my problem
Executing functions that build up my chair
Tags:
I'd say the following steps would be useful in your case:
A completely different approach, which will probably require some amount of VB/C#/python coding is to wrap all your chair parameters up in a dictionary or even a single string. This string is basically a single piece of data which contains all the variables that are needed to define a single chair. You can create this string using GH logic or using a script component directly.
Then you can create another script component which takes a number of these strings and blends, or averages, or interpolates them in some fashion.
I imagine some of your values are decimal numbers, some are integers, others may be booleans even. Writing specific code for dealing with them may ultimately be the easiest way.
--
David Rutten
david@mcneel.com
Welcome to
Grasshopper
© 2024 Created by Scott Davidson. Powered by