Notifications
Clear all

[Closed] Drawing lines in a viewport

I need to draw lines on a viewport that can for example follow a camera. I think they call this a “panavision” in movie making. Our animators would use this to modify the composition in the viewport, it would work a little bit like a safe frame, but instead have for example a grid.

Now, from all my experiments with maxScript I remember that if you draw lines in the viewport it would flicker when the screen moved. Another ways of doing it would perhaps be to attach some kind of geometry to a camera and make it follow. This will however create problems with FOV.

I’m thinking of writing this in the SDK since I doubt maxScript can handle this but got this nice warning in my face: “Developers should use these methods with an understanding of exactly what they are doing since it’s quite easy to crash 3ds Max when inappropriate arguments are supplied”

Any ideas?
Does there exist any similar scripts?
/Andreas

1 Reply
 PEN

The GW drawing methods would flicker in the viewport when the viewport is redrawn. It would work and the flicker for some thing like a grid wouldn’t be very bad at all.

The idea of a plane would work well and I’m not sure what you mean by a problem with FOV. I guess if the camera had a really wide angle to it you might start to see some distortion but what do they need it for and how accurate would it need to be.

I’m thinking the SDK would be your best bet and crashing Max isn’t a big deal, I do it all the time when developing scripts.