Home Technical Talk

[GeoNodes] Sampled curve only consider one spline (workaround)

Yerus
polycounter lvl 5
Offline / Send Message
Yerus polycounter lvl 5
I created a grid with an underlying curve and the "poles" are splines instanced on the curve points, poining up, the base curve gets duplicated n times and they are placed along the instanced splines forming "rails". It all works well, but the problem I face is that: when I split the underlying curve into two splines, the rails don't follow along the two underlying splines, they get like portrayed in the image2. They get sort of revolved along the poles back and forth a few times. Is there a workaround so the splitting gets reflected in the rails as expected?


Replies

  • okidoki
    Offline / Send Message
    okidoki greentooth
    This has to to with the indexing of the curve. It seem every part is indexed separately but this is not relayed onto the Index node ( only one dimension 0..n an not somethign like (1..p, 1..n) ~~ (Part , PartIndex)  ) so on splitting teh curve the index "restarts" of some kind but then it is not correctly interpreted anymore.
    But if you select one part in edit mode separate it ( shortcut P) then both parts are as intended with no "looping".
  • Yerus
    Offline / Send Message
    Yerus polycounter lvl 5
    Yes, I wish I could do that, but I can't, I have to find a proper way. I feel it's not too complicated, but it's hard to get the nodes right. Sometimes is only one node away..
  • Yerus
Sign In or Register to comment.