algorithmic modeling for Rhino
Dear all,
How could I retrieve all the possible objects that emerge from two independent variables? I have two lists of data, I have separately attached them to a ListItem and a Slider. This way using record data I can achieve and save all the possible data each list produces, but not collectively. So if list1 produces N results and list2 produces M results, what I get is N results from list1 and M results from list2, hence N+M. What I'm after is the NxM results from both operations combined into one. What's the trick?
Thanks,
Tags:
You could set up a single slider X that's NxM long, take X%N for the N input and X\N for the M input. (Those are the Modulus and Integer Division functions respectively).
Thank you for your quick response. I have two more questions:
1. The number of one of the variables, for example N, is not constant, and varies with each single result of the series with M Variables. So the MxN is not a constant number. Does this effect the approach you suggested?
2. I don't know what a modulus division is, and don't know where to find it.
Thanks,
2. Modulus is located under Math/Operators. See here for an explanation of what it does.
1. Do you have any way of composing a list of all possible MxN combinations? Can you for instance Graft M and get all possible values of N for every M? If so, take a look at the image below. This will allow you to set up a single slider that produces every possible combination of MxN, assuming the number of possible values of N is a function of M.
Have you looked into Genoform? http://www.grasshopper3d.com/photo/albums/genoform
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by