View Full Version : Save Transformed Object - Save Each frame?

04-28-2005, 06:39 AM
Hey guys, I did a quick search and nothing really popped out so I'm makin a new thread.

I am modeling for Serious Sam and I have to save each freakin frame as a transformed object...now with 30 second animations this is grueling...and then having it not come out right is even worse.

Is there any way I can save all the frames as a progressive name (001.lwo, 002.lwo, etc.)?

Thanks for all your help.

04-28-2005, 08:49 AM
pads = recall("pads",3);
s = Scene().getSelect();
startFrame = Scene().previewstart;
endFrame = Scene().previewend;
error("Select a mesh.");
if(s[1].genus != MESH)
error("Select a mesh.");
reqbegin("Save Transformed Series");
c1 = ctlinteger("Padding",pads);
return if(!reqpost());
pads = getvalue(c1);
fn = s[i].filename;
sfn = split(fn);
pad_j = padThis(string(j),pads);
mfn = sfn[1] + sfn[2] + sfn[3] + "_" + pad_j + sfn[4];



padThis: str, pads
f = "0";
digits = str.size();
fill = pads - digits;
if(fill < 0)
fill = 0;

f = f + "0";

finstr = f + str;

you can select multiple meshes if you want.

04-28-2005, 12:43 PM
Faulknermano beat me to posting a solution, but there's also "Save Transformed Sequence," a script you can download from this site:

04-29-2005, 08:09 AM
Due to the last post's lack of documentation, can one of you guys show me how to use it?

04-29-2005, 09:26 AM
if you're talking about d|ver's IL_SaveTSeq.ls script, it's pretty self-explanatory:

sequence digits is how many digits (e.g. padding) you want.

specify first and last frame.

the path field is where you want the files to end up.

filename prefix is the string that will be appended to before the mesh's name.

and in the object popdown you select the mesh you want to save.

and in case you dont know how to install the script, execute (in Layout) the Add Plugins command (look it up in the docs - i dont know what the default hotkey for that is) and add the script as you would a plugin. this will make it available in the Edit Menu or Edit Keys panel from which you can drag "IL_SaveTransformedSeq" into a menu or assign a hotkey to it. whew! :)

04-29-2005, 07:03 PM
There are LW plugins that come with Serious Sam that allow you to directly export to the Serious Sam mdl format. There's also a version that allows you to export skeletal animation instead of object sequences, but I don't remember if that's included on the CD or if it was a seperate download.

04-30-2005, 09:55 AM
DaveW, that's the .ska format actualy and since the mod I'm working on is for First Encounter SKA is not availible for use.

Thanks faulknermano for the instructions. :)

Your help is greatly appreciated guys.