Modulo Node not working

Hi, I have been following along this course and began working on the Ferris wheel. In the course upon adding the modulo node and setting the value to 2 all the gondolas appear to be equidistant with one missing. But, in my case when I insert the modulo node and change the value to 2 one gondola is still missing.
  • Martin Bergwerf replied

    Hi Uma uumav ,

    Could you show us a screenshot of your (complete) Node setup? And maybe also a shot of the viewport to show what's not working as expected?

  • Martin Bergwerf replied

    I was thinking about what you mean by: "...one gondola is still missing."

    And maybe you started with an odd number of gondolas.

    Modulo 2, basically separates the odd and even numbers. If you have 5 gondolas, their indices are 0, 1, 2, 3, 4. Modulo 2, that gives 0, 2, 4 and 1, 3.

    So, if you delete the odd numbers, there will be two gondolas next to each other and if you delete the even numbers, you get a gap between two gondolas:

    Gondolas.png

    • ☝️
  • Uma Vaswani(umav) replied

    hi, sorry for replying so late. I have attached a screenshot below of my problemProblem.png



  • Martin Bergwerf replied

    HI Uma

    I can't read your Nodes, but it looks like my guess was right (although I don't know how it gets from 24 to 23....).

    There is a gap, but it's not big enough for an extra gondola:

    Modulo_mistake.png

    If you could post a link to your .blend (via Dropbox, Googledrive, or so) (if possible packed: File > External Data > (Automatically) Pack Resources), I can give you a better answer.