You guessed it, I'm still very new to Houdini hence my question is probably basic.
I watched this fantastic tutorial –> MC Versus Vista [youtu.be]
And I thought to give it a try at the electric pole wires, it should go something like this:

I tried to do a simple solution with VEX like and I stumbled to few problems:
Is it possible to write the coordinates to all points like:
@P.y(previous point) - increment
can vex read the previous point @P.y value and how?
I can't seem to make a for loop work on points
e.g.
for (@ptnum = 0 , npoints(0), 1)
{do @P.y stuff..}

