Notifications
Clear all
[Closed] Finding Position On Spline
Jan 09, 2014 9:44 am
Hey,
Is there a way to get the position exactly 70 units down a spline, irrelevant to its length.
3 Replies
Jan 09, 2014 9:44 am
I was looking in to this route. As the spline will not always be straight.
x = curvelength $Line001
y = ((x)/1000)
z = (y / 2)
count = 1
for obj = 0.0 to y by z do
(
pos = lengthInterp $Line001 1 obj
rot = lengthTangent $Line001 1 obj
print pos
count += 1
)
Jan 09, 2014 9:44 am
try this one.
unitsPos = 10
myShape01 = $Line001
myShape02 = $Line002
pos01 = lengthInterp myShape01 1 (unitsPos/(curveLength myShape01 1))
pos02 = lengthInterp myShape02 1 (unitsPos/(curveLength myShape02 1))
point pos:pos01
point pos:pos02