The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.

Show your WorkFrom the old forum

Newbie Tutorial: Align rects according to their height.

3 replies Last reply

  1. I'm just starting out with nodebox 3. I played with vvvv and pure / gem before so I'm a bit familiar with the concepts of nodebased programming. Still it's different from my everyday material as a webdeveloper. Simple things like aligning rectangles according to their height must be done different.

    I made a little example and attached it. Very important was the Running Total node, which added the numbers I needed for the y position and gave a list back according to this pattern:

    Index y
    0 = 0
    1 = 0 + 1
    2 = 0 + 1 + 2
    3 = 0 + 1 + 2 + 3
    …

    A very handy node with a very unforeseen outcome.

    --> ndbx file

    screenshot

    Copy link
  2. NodeBox team

    The running total node is indeed quite important for networks where the position of one element depends on the positioning of all the previous elements.

    This looks like a good example to put on the running total node reference page. I would love to include it there, if that's OK with you.

    Kind regards,

    Frederik

    Copy link
  3. Hi Frederik

    If you think it is, it's very ok with me.

    I honestly think nodebox 3 should get some more publicity. I excels and shines in some very important areas. And it's fun.

    Copy link
  4. NodeBox team

    Thanks!

    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply