Join Meshes Using Python

Hello,

I have a few stupid questions: I would really appreciate it if someone could write me some sample code for me to work from. Thanks

  1. I have a list of meshes in Blender (2.49). How do I select them all using Python?

  2. Once these meshes have been selected, how do I join the meshes together? I am trying to conserve memory by joining meshes together (since I have some 100000 UVspheres in my model).

  3. Are there alternative ways of reducing lag in a .blend that has a lot of objects in it?

Thank you very much!
Sincerely,
Ejang

  1. Keep them in separate layers maybe…

Thanks very much!

That’s a very good idea and I should have thought of that!

I know how to move objects to layers, but as for joining them, I don’t know how. Can you show me the code to join selected meshes contained in a Python List?

Thanks in Advance!