Grasshopper

algorithmic modeling for Rhino

Good afternoon,

I have just a few quick Python questions about sticky dictionaries.

1. Is it possible to store a list in a sticky?

    i.e. sticky["list"] = list

2. Can you update or alter the list inside the sticky?

    i.e. sticky["list"].append(item)

3. Is it possible to store nested lists in a sticky?

    i.e. sticky["nested"] = [[item1, item2], [item3, item4], [item5, item6]]

4. Are stickies stored until deleted manually or what else could affect them? 


Thanks.

Views: 452

Replies to This Discussion

Yes on all four accounts (sticky is simply a Python dictionary). Closing/crashing Rhino will clear the sticky.

Thank you. :)

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