vector pos = 0;
pos = point(0, “P”, (@ptnum-1));
if (pos.y < @P.y)
@P.y = pos.y;
This works just as intended, however, only when the points of the input curve are below the origin (@P.y=0).
I have got round this by transforming the curve before the loop and transforming back by attribute (@xform) afterwards but can anyone explain why this was necessary? Cant for the life of me figure out why.
Image Not Found
I have included a hip file