Boundaries of Scripting?

I have always wanted to know how far can you go with scripting, until you hit the limitation of what's possible scripting wise in Unity.

For example, is it possible to create a lightmapper directly inside of Unity using JavaScript or C#? Please note that I am not saying that I would like to this myself, plus I am aware that Unity 3.0 will feature the Beast Lightmapper. It's purely for example's sake.

I am not really asking for a direct answer on exactly the last thing that would be possible inside of C# / JS, but something of the sort that will give me a better understanding of what's possible and what isn't.

Pretty much anything is doable (besides modifying the inner engine code)

You have the whole of .NET at your disposable (well, to a point), and quite a broad API with the engine for accessing things

If you can't do it with c#/js, you can also move to c++ plugins (with pro at least), giving you a huge area you can work with

To answer your other question - a lightmapper is perfectly feasible (and in fact has already been done - though i don't have time to find the forum link)

The sky's the limit, my friend.

Actually, there are certain things you can't do in Unity, such as writing a script to open or close a program outside of Unity, but that's only in the web browser version.

Other than that, you are limited by your knowledge of the language.