Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spline.Length not updated unless I add a point to spline (or modify it) first.
#1
I create a spline and add two points to start. Then in another function I move the "last point" to make a "straight" spline. But when I call spline.Length right after moving the point, it's always "0". I tried doing a spline.Refresh() and it still says 0. Only way I got it to work is by adding a temporary point right after moving the last point with InsesrtAfter(), then instantly deleting it. This seems to refresh the spline and then ".Length" works.

Any idea?
Reply


Messages In This Thread
Spline.Length not updated unless I add a point to spline (or modify it) first. - by _RicO - 08-24-2023, 06:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best way to duplicate a spline with an offset Kapistijn 8 1,296 04-12-2026, 03:18 PM
Last Post: _Aka_
  Control Point Interpolation Overrides. rickgplus 1 513 12-11-2025, 08:52 AM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 644 11-13-2025, 11:32 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,432 07-29-2025, 09:15 PM
Last Post: _Aka_

Forum Jump: