Notifications
Clear all

[Closed] Export Animation coordinates to spreadsheet?

hello,
i have an animation of a dummy object moving. i was wondering if there is anyway to export the xyz position of the dummy on every frame to a excel or text file?
so the file will be like
frame/x/y/z
1/130/-120/100
2/135/-125/120
3/140/-140/120

etc…
anyway to do this?
thanks,
gil

2 Replies
 eek

this is really loose – im not infront of max:

n = stringstream “”
for k = 1 to 100 do – your frame range
(
slidertime = k
format “%
” ($dummy01.pos as string) to:n
format “%
” ($dummy01.rotation as string) to:n
)

Theres a bit on saving to a text file, look at txt files, GetSavefile, filename. I cant remember atm. print n should show you the lot in the listener anyway.

eek

THANKS FOR THE REPLY!
i already found a working script on maxforums.org. pretty much the same as yours but it writes to a text file.
thanks for your help,
gil