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

How to set a Random Rotation? / Reflection

2 replies Last reply

  1. Nodebox beginner, here:

    I have svg shapes representing tiles in an overlapping grid-based array.
    The tiles can be oriented up to 8 different ways:
    • Rotation Angle: 0, 90, 180, 270 (which I've figured out how to generate from Angle and Range Nodes)
    • Side: Front or Back (basically a boolean)

    But I can't figure out how to randomly pick from the 4 possible angles and 2 sides.
    I've tried Shuffle->First1 but the shuffle result is always constant unless I vary the seed manually which defeats the point of a random output.

    How do I randomly select 1 from my ranges?

    Much appreciated,
    Dimitry

    Copy link
  2. Here is test image for where I'm stuck--all arrows have same orientation instead of what is desired (above).

    Copy link
  3. I think it might be a problem of where you put the shuffle/rotate node -
    e.g. at the 'top' of a 'chain', it will only influence the source geometry (all arrows will have the same orientation), while at the 'bottom', it can influence every arrow in the grid -
    well, that is a bit hard to explain :P

    But I came up with an example, see the attached screenshot & .nbx

    Copy link

Know something that helps?

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

Sign in to reply