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.

NodeBox 3From the old forum

Confused about output in the 'Getting Started' tutorial

2 replies Last reply

  1. Hey!

    First of all, I want to thank you guys for Nodebox. What a great project!

    Well, I have a question: I'm not sure if I fully understand the composition in the Viewer Pane in the last screenshot (right before "Saving and Export"). From left to right, top to bottom, I was expecting the following sequence: a triangle, a square, a pentagon, a hexagon, a triangle again (fine till here), and then a square again, but there's a second triangle instead. Two triangles in a row. Could someone please explain this output?

    Best regards.

    Copy link
  2. The answer lies into the amount you put in the sample2 node which specifies the amount of different hues, in the example set to 5. The list cycles through the previous list of sample1 which is set to 4 (4 different polygons). So it will wrap until it is filled and reuse the first value again. Solutions: 1: change the value of sample 2 to 4, so the lists match, or 2(what I assume you want): put the colorize node after the translate node so the list of 5 colors will cycle through the whole list of repeated shapes in the grid.

    Thank you for thanking us!

    Copy link
  3. Yes it's like Lucas says a question of matching the two lists together. This is explained in more detail in the concepts page, under the section "List Matching":

    http://nodebox.net/node/documentation/concepts/concepts.html

    But I think it makes more sense for the sake of the example to not have the triangle repeat twice, and thus putting the colorize node -after- the translate node instead of before. We will update the documentation accordingly.

    Copy link

Know something that helps?

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

Sign in to reply