Grasshopper

algorithmic modeling for Rhino

Is it possible to load list values into a genepool? I have looked around in the forum but I cant find a solution. I use octopus Explicit to do some optimization and I would like to load my results into the genepool to do some final manuel adjustments when the optimization is done.

Any help is greatly appreciated 

Views: 1657

Replies to This Discussion

Sorry no. The Gene Pool object is pretty limited. It can probably be done using a C# component, but I'll be out of office for a week it'll be hard for me to try while on the road.

Here's a c# script that creates a gene pool, pre-populated with the desired values + range. 

Attachments:

Thank you, this seems to be exactly what I am looking for. Unfortunately I get an error when opening the file. 
I can get as far as the 5.0 folder but for some reason I dont have the Plug-in folder, so I cant locate the GalapagosLibrary.gha file

That path is probably hidden. If you type in this %appdata% in Windows explorer you'll get to the roaming folder. If you unhide this folder you should be able to get to it. Anywho, glad it helped :)

Nice one Andrew. I recently had the same issue as well. Attached a stripped down implementation of the approach I came up with using GHPython. It operates on an existing genepool and does some naughty upstream stuff, so use with caution :)

Attachments:

A big thank you to the both of you for taking the time :) the Python script works perfectly 

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