How to get cubes to point same direction on curve

I’ve got a simple square curve. When I try and put these cubes along the curve, they all point off into a “curved” directions.

If I increase the subdivisions (nodes red arrow), they do all eventually align but I was wondering, surely there is another method to get them all to be straight, because the curve is straight. Or should I do something to the curve itself to tell it each point is 90(or x) degrees to each other?

Also, if there is a method which works for that, how can I get the points to avoid the corners? I’d want to put another object on the corners instead.

I really appreciate your help in advance! :slight_smile:

little bump

post that here instead Geometry Nodes - #2654 by Ratchet

As a feature request do you mean? Is it not possible?

MichaelBenDavid means ask in the Geometry Nodes thread where a lot of people are responding instead of starting a new one.

1 Like

You can try this (Blender version 3.1 alpha):

  1. resample the curve by an integer count and use the same number in the “to points” node
  2. use the index input to determine the corner points (if you have 4*N points, then every Nth point is a corner, which you can check with the modulo operation)
  3. only instance non-corner points


curve_sample_and_align_cubes.blend (101.8 KB)