draw a spline from a data file

Hi,

I'm new to max script and would like some pointers on how to draw a spline using a data file with xyz co-ordinates in it. Once I have produced a spline I then want to be able to select an object and read in a second data file, which would have the roll, pitch and yaw (u,v,w)of the object.(the rotations around x,y,z) for each vertex point on the spline. so that the object follows the spline and rotates at each vertex position.

What I have is data from a flight simulator of a helecopter landing on a frigate in the form of a data file with x,y,z data uvw data and time, from which I would like to produce an animation.

 

Thanks

 

Steven

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
arketip's picture

Seriously you will find all

Seriously you will find all you need for starting up your project, in the help file of the maxscript...


Begin your exploration at "FileStream Values" for example.
If you have a data file then i'd advice you to read it line by line and then divide the string into substrings with the "filterString" command.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.