My first "own" python code! (Tips on progression appreciated)

I’d advice against having functions/classes operate directly on Grasshopper DataTrees, but instead cast to native Python lists on input (and back to DataTrees on output) within the global of the script (e.g. using ghpythonlib.treehelpers). Separation of Grasshopper (i.e. Dataflow programming) and Python (i.e. imperative programming) logic/paradigms is generally advisable to keep things clean and simple. You might find these slideshows and example files useful in your learning journey:

Other than that, looking good :snake:

1 Like