I need to, using a script, all these elements add texture and body.

I have a model of a building consisting of 100,000 three-dimensional primitives. I need to, using a script, all these elements add texture and body. Processing will be, depending on the element name. The names have the following formats:
Wall[1000567]
Wall[1000568]

Wall[1000637]

Window[387655]
Window[387656]

Window[397868]

and etc
THANKS.

First of all, could you be a bit more specific on what you are wanting to do? Also, your english is a bit sloppy.

Revisions to your grammar: “I need to, using a script, add a texture and body to all these elements.”
Also, the “,” after “will be” is incorrect. The phrase isn’t a sentence. Just leave it as “Processing will be dependent on the element name.”

Sorry that this is a bit of a useless reply, but the grammar was chewing on my mind.

In my 3D model of the building contains 100,000 items. I need to add components to all objects. Components: light, texture, rendering, material … Processing will be dependent on the element name. THANKS.

wabuilderman, yes it is.

Ok, well in that case, all you need to do is have a while loop, and in that while loop use string functions on the name to determine the components selected. If say, the first number being 3 determines the light (you would define the light as a variable):

for(i:int=0;i<items;i++)
{
      if(items.get(i).name.charAt(0).equals('3'))
     {
           items.get(i).addComponent(LightComponentForObjectsStartingWith3);
     }
}