View Full Version : Motion path question
12-20-2004, 12:50 PM
Don't know if this as been addressed before but here goes. How do you get an object to follow a pre-defined path and follow the path orientation? I've searched the documents and can't find anything on doing this.
12-20-2004, 03:44 PM
You need a curve and either the 'MoveToCurveParam/MoveToCurveLength' or the 'AlignToCurveParam/AlignToCurveLength' expressions.
The 'MoveTo...' expressions constrain an object to a curve, while the 'AlignTo...' expressions also align the object. For some reasons the 'AlignTo...' expressions can't be found in the documents, but they are in the expression list. Contrary to the description there, the forth parameter is the fader of the position constraint of the object and the fifth parameter is the position of the imaginary target.
Look at the sample file, the 'Path' slider determines the position of the object along the path.
12-20-2004, 07:06 PM
thanks, will try that :thumbsup:
12-21-2004, 11:36 AM
tried to open your sample file in messiah and it does not work :sad:
12-21-2004, 12:06 PM
Hmm, that's strange, the MPJ file opens fine here ... Anyway, that's what I did in the scene:
1. Created a curve with some points.
2. Added a procedural cube.
3. Added a slider with a channel called 'Path'
4 In the 'Command' tab I added the expression
Moving the slider animates the cube along the spline. The third value in the expression is the position along the spline (0 = beginning of spline, 1 = end of spline), the fifth parameter is the position of the imaginary target, i.e in my example the cube looks ahead by 1/10 of the curve length.
12-21-2004, 12:52 PM
I really appreciate your help :thumbsup:
Somehow the file had no extension and when I tried to put the mpj extension, messiah did not recognize it. Tried the sample you describe and it works. I want to animate a vehicle following a path along a terrain that is not flat. How can I import a curve derived from the terrain into messiah and convert it to a messiah curve?
12-21-2004, 04:07 PM
you can also use the flexmotion effect. just add that to the root object, and translate it along Z. it will follow your path.
12-21-2004, 04:20 PM
Stiderotte, do you mean e.g. you have modeled the terrain and now want to make the vehicle follow the road ? I think there is no automated way to import an object and make a curve out of it, but if you are using LW as your modeling app, there is a plug-in (I think) that converts the points of an LWO model to nulls in Layout. This LWS scene can be read by messiah and then you can use the nulls for reference for your curve. This is a bit tedious if there are many points to add, but I don't know of any other way.
01-20-2006, 05:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.