Grasshopper

algorithmic modeling for Rhino

Hi All / Robert,

I am trying to replicate a resultant phenotype parameters/genes from the parameter export. 

I am finding a hard time to figure out how the parameter values are calculated ( they are certainly not a % of the slider value)

here is an example

There are two values with 0.4, they should be 25% of the slider of range 0.3 to 0.7. I am getting 2 different values 0.766 and 0.111. It is confusing since they should at least have the same value. And the value doesn't correspond to a percentage.

Thanks,

Views: 2117

Replies to This Discussion

Hello Faisal,

are you sure about the order in which the sliders are connected to octopus?

best

Robert

Hi Robert, 

The thing is even if the sliders are not in order, there should be repeated values in the export since some sliders have the same value and same domain. (0.7 and 0.4 are repeated , so 2 values should be repeated in the exported Param values and that is not the case).

And the other thing is that the values do not seem to represent a percentage of the slider (again there should be a 0.25 some where in the exported values to represent the 0.4 in its domain). 

I might be missing something .

Regards,

 

hello again,

for me it works fine in a simple example i attached.. maybe you can give me a reduced version of your script..?

best

Robert

Attachments:

Hi Robert, 

I recorded the data from the sliders/genes with a  record data component, then exported it to an excel file. 

Will try to debug the definition and maybe try to reduce it and give it to you.

Cheers,

Hi Faisal,

Do you have a definition or screen shot to share on how you used to record data component to export it to excel?

Thanks,

n

Hi Nite (sorry no eyed 'e' on my keyboard),
I guess it is better to check first if the parameter export in Octopus ( which is a % of the parameter ) is giving the right value. It is more efficient since you can directly export to a text file.
If you want to use the data recorder, just plug in the genes/parameters to the recorder component . In the screenshot, I grafted the parameters then flipped the output to have each generations' genes in a branch. Then you can export the output from the panel to a text file, or use a component that would create an excel file with each branch as a column. ( maybe lunchbox or some other toolset in food4rhino).
I hope this works.

Hi Faisal(don't worry about the ë),

Thanks for sharing the screenshot.Will try it out now.

Do you know how Can I visualize generations with data reorder?Say I am optimizing a facade.And would liek to compare geometrical variables at the end.see video part 3.

https://www.youtube.com/watch?v=fYw7KexxThM

Thanks again,

N

Hi,

i'm posting in this old thread because i'm facing similar questions.

As Faisal, I don't really understand why the parameters are so diverse. For example, one of the genepools I fed Octopus with was binary (24 sliders that could be set to 0 or 1). At parameters export, all values were different (see image) whereas I expected, if not 0 and 1, repeating values.

When I remap and round the values to generate my individuals again, it seems to work fine though : the individuals I generate in Rhino match the one I can see in Octopus viewer.

Is there a reason for this implementation ? I guess it makes it flexible.

Second question : is there a way to retrieve the order in which sliders have been connected ? The info must be stored somewhere as Octopus is able to reinstate solutions. Is it possible to access it ?

Thanks

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service