Grasshopper

generative modeling for Rhino

Hi David,

 

which one is the best way to get the persistent content from an input parameter (let's say the string code input from GhPython)?

By this, I mean being able to

  • ignore volatile data
  • ignore the disabled state of the component
  • ignore the solver state ("lock")

..and always get what is really there.

Thanks,

- Giulio
_______________
giulio@mcneel.com
McNeel Europe

Tags: disabled, ignore, persistent, solver, volatile

Views: 21

Reply to This

Replies to This Discussion

Hi Giulio,

 

you need to cast the parameter to Grasshopper.Kernel.Parameters.Param_String. Then you'll find a readonly property called PersistentData which returns a List<GH_String>.

 

Persistent data is stored in Lists, not GH_Structures.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Mh ok, it sounds reasonable. Thanks.

 

- Giulio
_______________
giulio@mcneel.com
McNeel Europe

RSS

Translate

Search Grasshopper

Members

Photos

  • Add Photos
  • View All

© 2012   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service