Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generating a path from selected point to the beginning of spline on a closed spline?
#5
(10-29-2021, 12:18 PM)_Aka_ Wrote:
(10-29-2021, 06:53 AM)Zendariel Wrote: The range variable was not applicable because the Spline could not be clamped for the end/beginning of the loop, so it did not work the same way as it would on an open spline.

If I am not misunderstanding, you could have two Shape Extrusion modules both with ranges, one from say 0.8 to 1, the other from say 0 to 0.3.

Even though your modified module fits properly your needs, without having to have two Shape Extrusion modules, please let me know if what I suggested is an alternative solution to your issue.

Thanks a lot, and have a nice day



It is pretty close, but if you use the range, and you then make changes outside of that area those changes will affect how the range variable works. So while I can cover the area that way, Any change that affects the length of the spline also affects where the extrusion using range variable starts and that causes a need for manual re-adjustment. And when using the range on a closed spline it works a bit differently when there is no end point determined at least in the current version. Range is a single number determining the starting point and length determines how far it will go.


The exact issue was that I could not set both a start and an end point that would be tied to a stationary point. When the length of the spline changed at any part, I'd have to manually fix any generators that use the range variable to cover until the last segment. So if i wanted to cover the last 100 meters of a kilometer track, I'd have set the range to 0.9 and length to 0.1, but if the Track was changed to be 1.3 kilometers in length, I would now have a a mesh that started 30 meters earlier than I wanted and be 30 meters longer.


It is a decent workaround, but if you have for example 5 different generators for different kind of objects starting from different points but ending at the end of the loop, you would have to change each of those manually every time the spline length changes.



I could also do it with one extrusion on a closed spline by setting the Range to 0.8 and Length to 0.5 in this case, but it would also need to be readjusted every time the length of the spline changes.



Or on a closed spline I could also choose the starting point as a the last point and adjust the length which would give me one point that does not move, being a bit better option. But again, any changes to the rest of the spline would cause a need to manually readjust every generator that uses the range in this way.



Thank you very much for the advice, it was helpful and I understand the range and length variables on closed splines a bit better now, even if it did not quite cover the need I had.

Nice day to you too.
Reply


Messages In This Thread
RE: Generating a path from selected point to the beginning of spline on a closed spline? - by Zendariel - 10-29-2021, 01:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rasterized Path Range issue proton 7 23 04-30-2024, 11:17 AM
Last Post: _Aka_
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  Getting Distance from a World Point zorksox 3 5 04-16-2024, 07:30 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_

Forum Jump: