this.expression.copyWithInputs is not a function

https://snap.berkeley.edu/snap.html#present:Username=ampelectrecuted&ProjectName=brokesies&editMode&noRun

I'm not getting an error in your example. I needed to remove the "delete all of list" block.

Anyways, to solve, just add a special case to your "add block to script" block to check if either input is an empty ring. I don't think this is a bug because it isn't clear what should happen when joining to an empty ring.

how?

post script pic

Someone move this post to Advanced Help with Snap!

done

Obsolete

"add block" was the problem. Meta programming does not work this way.
You may join a single block with parameters or convert the whole tree to script.
This may work

Or more generic


When an edge case doesn't behave the way you want, you can always hard code it to do something different!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.