Grasshopper

algorithmic modeling for Rhino

How to run two sliders (set of parameters) and record all the possible results?

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,

Views: 1534

Replies to This Discussion

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. 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service