Jump to content


  • Content count

  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

0 Neutral

About fabsberry

  • Rank

Personal Information

  • Name
  1. VEX: for i

    Thank you, it makes more sense now!
  2. VEX: for i

    Hello, I have a problem understanding "for i" in vex. for (int i=0; i<npoints(0); i++) { float val = point(0, "value", i); float preval = point(0, "value", i-1); float calc = val+preval; setpointattrib(0, "value", i, calc, "set"); } In the picture you can at first see my initial values. Now i want to add the sum of the previous values to my current value . I wrote the values i expected to get in red. What is wrong with my "for i"?
  3. constantly decreasing polyline

    hello guys, currently i am working on a river tool. hopefully you can help me with my problem: i have a polyline with a few hundred points. i project them onto a surface and now i want the y-position to be decreasing. i need to make sure, that my current point (y-position) is located underneath the previous point. If that is not the case, i want it to be readjusted to the previous position.