Geometry Nodes cyclic tansform

Question

Hello there, fellow blenderers. I am trying to set up a geo-node transformation (Transform node) that moves the object in the Z axis 1m up and then come back to Z=0. 
The cycle is tied to a 360° spin of a secondary object, so I have the rotation turned to radians, and a combine xyz node after that so that it only affects the Z axis. I can make it go up, or go down, but not one after the other. 

Captura.jpg

The FromMax 6.28 equals the 360° turned to radians.


Any ideas to solve this?

Thanks for your time :)

  • Martin Bergwerf replied

    Hi Martin,

    I'd use maybe something like this:

    Cubes.png

    If you want the up-down movement not linear, you can use Sine, in stead of Ping-Pong.

    Hope this helps.

    1 love
  • Martin Aversa(cgtin) replied

    Hi Martin, thanks a lot! I will give this setup a try when I get back home. It looks cleaner than what I came up with. I used an index and modulo to delete half the geometry, and then added it back again with its own offset and map range. It worked but it's not that pretty so I'll be happy if yours works too :)

    I'll let you know later today.

    Thanks again!

    • 👍🏻