View Full Version : 29870 Layers in .lwo Error

11-09-2010, 08:16 AM
I am troubleshooting a script written by someone else and think there is a problem related to the quantity of layers in the object I am working with. Apologies, but I cannot post the script or describe what it does yet, but if you folks can help despite the dense shroud of secrecy, I'd appreciate it.

The script executes fine in a brand new object, or in an object with only a few hundred layers. However I am attempting to get the script to work in an .lwo containing 29870 layers.

Are there any Modeler commands that return 3 or 4-digit values but don't work north of that? I am guessing that once 9999 layers is crossed that something unexpected is happening.

Does getEmptyLayer have a ceiling built into it perhaps?

11-09-2010, 08:26 AM
I'm very curious, what kind of object has 29870 layers?

11-09-2010, 08:41 AM
The object doesn't actually have data in each of those layers, there are gaps with empty layers. There is object data in over 1000 of those layers though. The layer contents are generally very simple, consisting of 20 tris or less.

11-09-2010, 02:57 PM
I'm pretty sure there's a REMOVE EMPTY LAYERS script. Why don't you try that to get below 9999?

11-09-2010, 03:20 PM
Thanks, I'll take a look at that script.