Grasshopper

algorithmic 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

Views: 276

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

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service