Notifications
Clear all

[Closed] Object height to match Spline Lenght using Maxscript?

Hi, I found this solution to wire a length of a spline to height of a box.

http://forums.cgsociety.org/showthread.php?t=309679

dependsOn $Line01 $Box01
( --length
local SL = getSegLengths $Line01 1
local SLC = SL.count
SL[SLC]
) --length

I tested the script in attached scene file. Then, I want to apply that to my scene and newly created objects, box01 and line01, I run the script but nothing happens, and I don’t get any error.
How to adjust the script so to match line length to a height of a box object?

please, take a look at source thread for more details.

1 Reply

Now, I realized that I misunderstood this script.

I applied the script in curve editor and it is working. What I an trying to do now is to animate a height of a box, based on splines lenght.
So a spline is not changing, but a box is changing it’s height based on spline’s length.
Any help how to animate this?