[Closed] Controlling a path constraint controller with xyz coords?
Say I have an object set to move along a path using a path constraint, and I want to move it to a specific [x,y,z] position that falls along that path… How do I do this?
Ah, looks like what I was looking for was the “nearestPathParam” method. In case anyone else wanted to know.
I looked up that phrase in the Help, “nearestPathParam” but all I got was the usual lack of clarity that the help file brings. I am interested in what this means.
NearestPathParam finds the closest point along a path to a particular point in 3D space, and gives it to you as a percentage of the length along the path.
Probably easiest to think in terms of finding stuff like “at what point in a planet’s orbit is it closest to the Earth,” though it’s obviously also useful for stuff other than that.
I see, I guess I was hopig for something other than this. I was trying to space path constrained objects from the path at variable disstances, as though the objects were taking up the volume of a tube with the path as its center.
This only sounds like it reads the distance, but does no set it.