PDA

View Full Version : Export Animation coordinates to spreadsheet?


giloosh
02-14-2006, 05:12 PM
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

eek
02-15-2006, 06:37 AM
this is really loose - im not infront of max:


n = stringstream ""
for k = 1 to 100 do -- your frame range
(
slidertime = k
format "%\n" ($dummy01.pos as string) to:n
format "%\n" ($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

giloosh
02-15-2006, 01:42 PM
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

CGTalk Moderation
02-15-2006, 01:42 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.