Controlling Point along a given vector

Hey Everyone,

I am stuck at where I want to be able to control the Motion of a point along a given vector. I want to be able to control the Motion of the point via slider within the length of the vector; from the start of the vector to the end. Right now I have set an expression to the Motion which is x/2. But I couldn‘t figure a way out. It would be nice if someone could show me how it‘s done. Thank you. The script and a screenshot are attached.

Warm regards
Orhan
231110 forum post.gh (30.0 KB)

Given a Point3d p and a Vector3d V and a double T (0 - 1) your point is p + V*T

So just use a slider for T with Interval 0 to 1.

If you want an user defined value for the V Length … define the V (say using 2 pts etc), Unitize and then multiply V by that value.