path <target> <path> [<dx> <dy> <dz> <freqscalar> <timeShift> <start> <end>]By simply calling the path command, an object will move along the vertices of another object over time. This will not compute a coordinate frame and align the object, if you wish to do this, you must in addition set up a lookat object. The trick is to use the timeShift parameter of the path command by having a null lookat object that is ahead on the path by a few frames. For example, placing a camera on a path with alignment can be done as follows:
# create null lookat object add geo name null path null camerapath 0 10 0 1 5 # set up path path headCam camerapath 0 10 0 path headLight camerapath lookat headCam null
Camera on Path example
########## paths can be drawn in INSERT MODE begin draw -187.588806 0.000000 -239.755219 -133.610413 0.000000 -223.879181 -111.665726 0.000000 -186.813324 -79.908226 0.000000 -165.697113 -75.414795 0.000000 -142.431381 -82.305672 0.000000 -92.109131 -85.484802 0.000000 -37.041653 -65.336739 0.000000 -0.434334 -45.687973 0.000000 13.424652 -8.467972 0.000000 13.459114 37.204956 0.000000 -5.813461 72.593063 0.000000 -14.103821 104.314827 0.000000 -12.117661 112.967720 0.000000 -41.284901 113.544670 0.000000 -79.994431 117.246689 0.000000 -192.555267 114.627029 0.000000 -226.301392 122.849327 0.000000 -247.871872 end name camerapath bspline 20 add cam name headCam add light name headLight light quadratic 0 light linear 0.1 light constant 0 # create null lookat object add geo name null path null camerapath 0 10 0 1 5 # set up path path headCam camerapath 0 10 0 path headLight camerapath lookat headCam null