- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
This is a re-post from the general modelling forum as I realised it was more of a programming issue than a modelling issue and I've received no responses there anyway!
The goal;
Using a path constraint, have an object follow an elliptical path with thousands of vertex points. Each consecutive vertex point is a consecutive key frame.
The problem;
Because there are thousands of vertices and because the progress of an object on a path constraint is determined by percentage it would take me hours to do this manually.
Possible solution
I can use AutoCAD's data extraction tool to export the coordinates of an ellipse to a spreadsheet. I can use the spreadsheet to add any additional script that may be necessary and I have found a maxscript that will read from a .csv file and draw objects at xyz coordinates contained within it. I was thinking that another maxscript may be able to actually duplicate the ellipse by perhaps drawing a dummy object at each coordinate and then drawing a line between each one. It would also need to assign an incremental key frame to each coordinate.
A pseudo script might look a little like this:
Draw dummy at xyz coordinate 1
Draw dummy at xyz coordinate 2
etc
etc
Draw line from xyz coordinate 1 to xyz coordinate 2
Draw line from xyz coordinate 2 to xyz coordinate 3
etc
etc
Select line as a path constraint
Assign key frame 1 to coordinate 1
Assign key frame 2 to coordinate 2
Sorry I don't know maxscript but the above I would imagine would be the process?
Another option would be to simply import the ellipse geometry directly from the AutoCAD dwg, apply a path constraint and somehow have a script set each vertex position as a key frame. The trouble with this method however is that I don't think it would know how to order the vertex coordinates incrementally?
Either way I'm stumped at the moment so any help would be much appreciated.
Solved! Go to Solution.