Infinite script recursion (250 calls) detected - how to bypass it?

Just ran into this too. I want to add stuff along a spline during construction, and after 246 recursive iterations it detects an infinite loop.