Notifications
Clear all
[Closed] How to save objs from max script?
Nov 04, 2005 2:47 am
I need to save an obj file for each frame of my animation. I can’t seem to find how to save an obj (or any file type, for that matter) in maxscript.
I’m also having a bit of a time learning how to iterate through frames with maxscript. I can get the current frame, the start and end frame, but how do I increment currentTime so I can work on frame 2, 3, 4, and so on?
Any help is much appreciated.
2 Replies
1 Reply
sidertime = the frame you want to be at
current time is a read only varible and it canot be set.
Nov 04, 2005 2:47 am
In the MAXScript Reference look up the exportFile comand.
exportFile "fileName.obj" #noPrompt
This will export the scene out to a file named fileName.obj to [b]<[i]maxDir[/i]>\meshes[/b] directory, you can specify another directory in the filename using an absolute path. The [b]#noPrompt[/b] flag forces the export to use the last configuration of the exporter and supresses the export dialog.
If you want to export a selected object there is a flag for that as well.
exportFile "fileName.obj" selectedOnly:true #noPrompt