ScriptSpot

Script

Geometry Sequence Exporter

By masquerade · Credited author: Arda Kutlu · 2010-12-23

Version
1.00
Version requirement
written in 2009, should work 2010 and 2011
Date updated
2010-12-23
Votes
9
Download
Download
Description

This script enables you to export geometry data as a sequence. Especially for workflows like Flame/Inferno workflow where point data is not supported it is possible to export mesh deformation through object sequence.

Features:

- Export .obj .3ds .fbx and any other 3ds Max supported Geometry data format as a sequence
- Export only selected range
- Selection based export. Exports only selected geometries.

Installation:

- Run the script. (MAXScript => Run Script)
- Customize => Customize User Interface. Under the Category: Tik Works you will find the script.
- Assign the script to a Menu, Hotkey or Quad Menu.

Usage:

-Select mesh animated objects you want to export.
-Select the path
-Define the base name of the sequence. If only one object is selected default name is selected objects name. If multiple objects selected default name is scene name.
-Define the time range. Default range is current scenes timeline range.
-Hit export

Tags: obj 3ds fbx sequence export

Comments (14)

dsp_418 · 2013-02-09

How to modify the script to add the obj and get rid of the error?

Jonathan de Blok · 2012-03-30

About the obj export, if you modify the code to add a ".obj" extension the the file name the "cannot determine export format" error will go away.

OBJ Export 2011

manoeuvre · 2011-07-27

Hi there,
I'm getting a error when exporting using the .obj setting in 2011.
(Cannot determine export file type -- Export cancelled)
I'm having no problems with other file types, any ideas?

masquerade · 2011-08-01

hmm. Didnt try it on 2011. I will look into that and get back to you.

masquerade · 2011-01-05

You are welcome. Hope it covers your needs.

thx

horo · 2011-01-06

I see, but as long as it works it´s fine.
I really appreaciate the work u put into it,
thank you so much for that :)

horo · 2011-01-03

strange because it works when i change it manually.

are u sure it´s changing at all?

Attachments

masquerade · 2011-01-04

horo,

I took another look. You are right, when you manually change the starting frame of animation range, it updates the starting frame in .ase exporter options. The problem is, in #noPrompt mode, it doesnt take the starting frame into account, it simply makes it zero. The conclusion I achieved is that, it changes the frame which is gonna be exported from the UI of ".ase" exporter. Therefore, if UI of the exporter doesnt show up, it simply exports the default frame which is 0.

Since I couldnt find a way to change exporter options through scripting, the only solution I found is export every frame without #noPrompt option. This means it asks for confirmation for everyframe frame. But you can keep enter button pressed :)

If you want I can share the modified .ase exporter with you. It is meaningless to modify the current script just for this lousy solution, therefore I made another simple script for just .ase exporting purposes. Send me a PM or e-mail, if you want.

masquerade · 2011-01-03

I tried to change the start time of the animation range for each iteration. But it seems .ase exporter exports frame "0" everytime, unless you change it from options of exporter. I dont know if there is a way to reach the options of exporter plugins but I couldnt find anything about that. Another approach could be re-writing a dedicated custom .ase exporter. But thats a completely new story. I remember I saw an example on the maxscript documentation. Search for "Output Geometry Data To Text File"

horo · 2011-01-03

google repository_lynx_lite its an ase viewer

. . .

horo · 2011-01-02

I tested other formats and it works good,
but i need ase :(
I think it should work if u just modify the StartTime by +1
before each export.
That´s a workaround to change the staticframe from the ase export window.

also some suggestions:

togglebox to skip the prompt window.
be able to assign a default path.
frame step (e.g. value "2" exports every second frame).

masquerade · 2011-01-02

Ok, I am gonna try that solution. Where are you gonna use .ase? Asking this, cause I dont know where to test it whether it works or not.

masquerade · 2011-01-01

I didnt try .ase export actually.
Everytime you run the script, the start and end fields are updated according to the current timeline.
When exporting:
-It first changes the slider time to the start field value.
-Exports that frame without quiet option. So the export parameters for each format should be accessible.
-After the first frame, for every iteration it changes the slider time +1 until the end time. This time the quiet option is enabled so it wont ask anymore about the options, last selected options are valid.

Maybe it is related with .ase, did you try any other formats?

. . .

horo · 2011-01-01

cool script, could u maybe fix the .ase export?
atm it will only export frame "0" for all files.
u can affect the export with the timeline configuration (Animation-StartTime).

so before it exports a frame the startime must change by +1.

Thx in advance :)