Hi, well I have some experience with c-script and a few years ago I gave it a little try but never got very far - I also know a little of a few other languages but nothing that would let me sort this out^^.

Here's the part that lets you adjust the thickness of the outlines

function dunkelblauedickereLinie()
{
mtl.skill1 = float(0.0);
mtl.skill2 = float(0.0);
mtl.skill3 = float(0.1);
mtl.skill4 = float(1.0);
}


The formula to calculate the scale of something as it gets further away is scale=focallength/(focallength+depth). Once you know how much a model is scaled you just have to multiply the line thickness by (1/scale). But how do I do this in c-script? And what would also be required is to limit the scaling - else when the model get's very far away it'll turn into a weird blob as the lines will start obscuring the model.

Hope someone can help me with this?