Metaball on a curve

Hi I’m trying to do this thing where I need a meta ball to flow along this curve. My current script only allows the mata ball to be contained in a box. How should I change my script?

Many thanks!

Meta ball script:
metaball_1209.gh (19.4 KB)

Curve:
file_1_1209_metaball_stair.3dm (4.9 MB)

I don’t know what metaballs are, but is this what you try to achieve? (the solid union is disabled, because it can take some time. If it fails the tolerance should be lowered)

metaball_ME.gh (17.8 KB)

Use Cocoon

http://www.bespokegeometry.com/2015/07/22/cocoon/

metaball.gh (13.7 KB)

Thanks I learnt something new today!

Thank you this really helps!