Help! How to resolve ‘Brep’ object is not iterable’ Error?

Hi. I am trying to get Grasshopper to simulate ocean wave movement and how it responds to wave barriers. However, when creating the script for the wave barrier, I encountered the error ‘Error running script: ‘Brep’ object is not iterable [20:1]’ referring to my Barrier Geometry’s connection to the Python script.

Any advice on how to resolve this problem?

Below is a screenshot of the error in GH & Python:-

I’ve also attached the Rhino and Grasshopper files.

Wave Simulation.gh (307.4 KB)

Wave Simulation.3dm (103.8 KB)

I think you need to connect the a output of the first script component to the wave_pts input and maybe change the inputs to List Access…

The script runs but I’m not sure the barriers do what they’re supposed to do?

Wave Simulation.gh (20.4 KB)

Thanks for the response and for resolving the error! After running the script I also noticed that the barriers do not seem to work.
I intended for the waves to react to the barrier and change the way the waves propagate. However, I can’t seem to work out how to get it to achieve that.

Seen this?

Woah that’s amazing! Thanks for sharing the thread, I’ll definitely explore from there!