Notifications
Clear all

[Closed] Maxscript draw custom outline in viewport

Hi
Is there a way to draw custom outline in the viewport (like the preview / selection outline) using maxscript ?

3 Replies

Yes. Search the maxscript help file for Viewport Drawing Methods.

Thanks for the answer, I’ve manage to do it using the gw.Polyline function.

Two questions though:

  • Is it possible to draw in a viewport that is not active ? (even though the maxscript help specificaly indicate that these method only work for the active viewport) (I feel like I’m answering myself, but you never know )
  • Is it possible to set the “size” of the line, meaning that right now, the line looks thin compare to the preview / selection outline ?

The size of the lines can’t be changed using maxscript. I don’t know if c++ will help also.
To see the outlines in non active viewport – draw them using other methods. For example use splines to “draw” the outlines(and you can change the size of the splines).