Pframe doesn't align frames at curve's seam

Hi!

I want to create frames along a curve, but I don’t want them to be evenly spaced but rather control at which parameter each frame will be.
I used “pframe” instead of “pframes” and I can control the parameters but they don’t align at the seam of the curve. (it can be seen with the loft I made along the curve)

*I only used the loft to showcase the misalignment. The frames are to be used differently and it is important that I can control where they go.

I tried:

  • “align Planes” didn’t work.
  • “reconstruct curve” didn’t work.
  • I checked the curvature graph of the curve and it is smooth, no kinks anywhere.

any ideas?


align frames.gh (16.0 KB)


align frames_2023May24a.gh (22.4 KB)

P.S. Slider in blue group rotates all aligned planes.


align frames_2023May24b.gh (20.9 KB)

P.P.S. It occurred to me that the Avr (Average) point used as Vec2Pt ‘A’ input was being shifted by the irregular spacing of the pFrames, so I used evenly spaced points for that instead.


align frames_2023May24c.gh (21.4 KB)

By the way, it also occurs to me that the Remove end cluster can be replaced by Shift List with ‘W’ (Wrap) set to ‘False’ (by inverting the default ‘True’ value).


align frames_2023May24d.gh (19.2 KB)

1 Like

Thanks man! You never fail to impress me.
I still don’t completely get what you did but it seems to be working fine!
While waiting for an answer, I found a ‘mechanical’ way of doing it by offsetting the curve, dividing it with the same parameters and creating vectors between the two sets of points. Your solution though looks much more elegant.

P.S. 1: the ‘remove end’ is a user component I’ve made since my first days with grasshopper (along with ‘remove start’ and ‘remove ends’ and I still use it because it saves me the time it takes to edit the settings of ‘shift list’ (and in the case of ‘remove ends’ it would need 3-4 components to make) it’s just a productivity trick.
1

Sounds like a bad habit. Each of those operations requires only one component, as you can see:


remove_ends_2023May25a.gh (10.0 KB)

Replacing one component with a cluster that uses several components degrades readability.

  • These are components that I use many times a day, multiply those times by at least two clicks and typing a number, then multiply that by those days… it adds up!
  • They have the added value of retaining access to the subtracted values without the need of an extra component!
  • THEY LOOK PRETTY! Someone very talented (me) designed those beautiful icons! :rofl:
1 Like