Export 3DSMAX to a specific .txt format
Hello everyone!
I'm looking for a 3dsmax script in order to export data from 3dsmax.
I have an animated cube in my scene and I need to export for each frame (at 100fps)
position and rotation in this particular file format (txt):
0.000 0.000 0.000 0.000 0.000 0.000 0.000
0.010 0.000 0.000 0.000 0.000 0.000 0.000
0.020 0.000 0.000 0.000 0.000 0.000 0.000
0.030 0.000 0.000 0.000 0.000 0.000 0.000
0.040 0.000 0.001 0.000 0.000 0.000 0.000
0.050 0.000 0.001 0.000 0.000 0.000 0.000
0.060 0.000 0.001 0.000 0.000 0.000 0.000
0.070 0.001 0.002 0.000 0.000 0.000 0.000
0.080 0.001 0.003 0.000 0.000 0.000 0.000
0.090 0.001 0.004 0.000 0.000 0.000 0.000
0.100 0.002 0.005 0.000 0.000 0.000 0.000
0.110 0.002 0.006 0.000 0.000 0.000 0.000
The first row is time in seconds, then X, Y, Z in millimeters, rX, rY, rZ in degrees, each time seperated by a tabulation space (this space doesn't appear in the post, sorry... there is no way to input tabulation space in this post...)
I need this specific data file in order to export my 3dsmax animation to a 6DOF hexapod motion software.
Does anyone can help me???
Thanks a lot for all your answers!!!
r.
Comments
Hi, I gave it a try, I've
Hi,
I gave it a try, I've truncated float value to 3 digits like your example :
To use it, simply select the cube and then execute the script. You can change the export path easily changing the first line of code.