Hoopsnake

Update:

Hoopsnake is now Open Source!

Check out the repo in Github!

Fork it and fix it :)

Hoopsnake is a component that allows feedback loops within Grasshopper.

Using hoopsnake to add values to a list while in loop using python

Hi Guys,

I'm not sure if this is possible using python but I want to code these python components in such a way that the list that you see in the group at the bottom of picture becomes a list of 5000 items when hoopsnake loops 5000 times.

The problem I'm having is that everytime hoopsnake loops the states of all the connected python components reset so they cant store anything!

Is there anyway around this using python? Or do I need to dive into the language that Hoopsnake is using?

  • up

    Chris Landau

    You can pickle (serialize) Python objects to a text file and then unpickle them the next loop around. There has to be a way of indicating whether it's the first time around though (loop =0). It's a little weird but it works in a pickle.
    • up

      Chris Landau

      I suppose you could also send the pickled Python data through hoopsnake as well.
      1
      • up

        Archemo

        did you solve it? if yes, please do share how

        1