Grasshopper

algorithmic modeling for Rhino

Holaaaa,


anyone know if someone has already tried before manipulating SaveState function (to save combinations of parameters via Solution> Save State) within a component on the canvas?


Can this be done?


I guess that's a question for David Rutten, where this function is stored? how to access it?

What I want to do is use Boolean conditions to decide whether or not to save the combination of parameters. I have to automate the production and I would also automate the selection of possible outcomes, rather than saving geometry, I want to save the settings.

Thank you very much.

Views: 972

Replies to This Discussion

GH_Document.StateServer.NewStateFromDocument()

however that shows the UI.

You can also create new states from scratch by constructing a new Kernel.GH_State instance, then adding all sliders etc. you wish to include using the AddStateObject() method on GH_State. You should also give the state a name, unfortunately it seems you cannot assign a date to it, all the setters are private.

Once you have a new GH_State, use GH_StateServer.Add(GH_State).

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service