How to detect folders while traversing all objects?

How to detect folders while traversing all objects?

I have used the "Simple ASCII Export.js" that comes with the Cheetah 3D 5.3 to enumerate and print all objects in the object browser.

I works fine for objects and their childs.

But for some structures I have used folders. So the objects in the folders are printed - but not the folders itself: This is what I am looking for.

In the Cheetah 3D 5.3 Help I cannot find the folders and their properties in the script area ...

Are there any hints for this?
Is there a complete list of all objects and functions in the Scripting Language? I could not find one so far ...

Thank you for all hints and support

E-Ma-Naku
 
Hi,

you need write additional code to print folder information.

Code:
if (obj.type() == FOLDER) {
    var pos = obj.getParameter("position");
    file.writeln("FOLDER "+obj.getParameter("name"));
    file.writeln("   pos: "+pos.x.toFixed(6)+", "+pos.y.toFixed(6)+", "+pos.z.toFixed(6));
    /* .... */
}

regards.

tg_jp, Hiroto
 
Back
Top