Object placement on a curve no aninimation
I am currently working on a script where I place objects along a curve. This is not for animation, just placement on the curve.
Here is a snippet:
********************
float $pointOnCurve[] = `pointOnCurve -pr $tmp -p ($curveName[0])`;
move ($pointOnCurve[0]) ($pointOnCurve[1]) ($pointOnCurve[2]) ($nameObject[$temp-1]);
*******************
where $nameObject[] is the array containing the objects to be moved onto the curve.
My question is this---How do you get the objects to actually follow the curve, where rotation of object also goes with the curve, not just being placed on the curve?
Mabye this simple pic will clarify:
I basically want it to be like the "follow" commmand when attaching an object to a curve for animaion along the curve, however I don't want the animation.
Hope that's easy enough to understand.
thanks,
Nic