can i return a vector between points 0 and 1 on a spline and then use this vector to drive the orientation of another object so that it always points along the spline?
thanks,
MarK
vector between 2 points on animated spline to orient objects
6560 1 1- MWainwright
- Member
- 119 posts
- Joined: July 2005
- Offline
- jrwillette
- Member
- 49 posts
- Joined: July 2005
- Offline
Yes, here is one method in SOPs;
- -Isolate the two points via Delete SOPs.
-Plug those into the two inputs of a Point SOP.
-Use this in the Add Normal Fields (XYZ): $TX-$TX2 | $TY-$TY2 | $TZ-$TZ2
-You could then use this as a template in a Primitive SOP and orient object to the normal.
Another way would be to do it on the object level;
-Set “Path Object” for your geometry to the object containing your nurbs path (must be the displayed object), this will automatically orient to the path, but will not look ahead on the path.
-To look ahead:
-Create a null object and use the same path as your other object.
-Reference your main objects “Position” channel and add the desired look-ahead offset to it
-Set your main objects “Look At” field to point to the null object.
Now if you animate the position of your main object it will orient to the path and look ahead at the null object.
Jeff Willette
Freelance TD
Freelance TD
-
- Quick Links