Home > Uncategorized > Spline to XML MaxScript

Spline to XML MaxScript

September 18, 2007

The post on exporting splines to XML for path animation in Papervision 3D proved to be pretty popular 🙂  I’ve received some requests for the Maxscript used in the export.  It’s pretty pathetic as scripts go, but here you go!

Place the script in the {3ds max root}/scripts folder.  Run the SplineToXML.ms script, then open a listener window.  Select a curve in MAX.  In the listener window, type


Move the camerapath.xml file from the scripts folder to the bin folder of your Flex app.  Animate and have fun!

Caveat:  My 3ds max install is very old (V6), so I can’t vouch that the script runs on later versions of the software.

Categories: Uncategorized
  1. September 8, 2008 at 5:50 am


    I’ve just finished porting your maxscript to 3dsmax 2008 (My first MAXScript ! woohoo!). I’ve tested, it works fine 🙂

    Anyone interested can grab it from here:

    Thanks for the script Jim…Let’s see how those splines animate now 🙂

  2. September 8, 2008 at 6:40 am

    Thanks, George. Much appreciated, especially as a MAX upgrade is not feasible for me any time in the near future.

    great work!

    – jim

  3. October 15, 2008 at 3:14 pm

    Hi, this is fantastic. Can you help me at all with getting this to work in CS3 rather than Flex? I have the maxscript working and properly exporting my spline xml data but it’s unclear to me as to how this data is read by papervision. I’m using pV2 (great white) but I imagine I can figure it out pretty quickly if given a direction to go in.

  4. SrB
    April 22, 2009 at 3:46 am

    works fine in max 2009 ….
    nice script !

  1. No trackbacks yet.
Comments are closed.
%d bloggers like this: