@JakeHebbert’s approach, although superb for learning GHPython, isn’t very optimised and kind of outdated.
The main issue is that he saves all the necessary information for the simulation (i.e.
massList) for each moment in time into an ever growing nested list that he then loops over outside of the GHPython component to animate stuff.
In your example, you store 1000 iterations x 13 movers x 2 pieces of information per mover, equals 26000 list items, and that doesn’t even include the 13 mover instances that are stored separately.
It would be a better move to animate the GHPython component itself, only store the movers to the
sticky dictionary or
globals(), and output the necessary information at each iteration only.
Also RhinoCommon would be faster than using the rhinoscriptsyntax, because it cuts out the middleman.
Can you be a little more specific about this? What does the error message say exactly?
The script runs fine for me. Maybe the error is in your VectorMethods.py?