How to stop drawing lines drawn using gw.Polyline
Hello,
I am drawing some visualization lines using gw.Polyline in maxscript.
How can I toggle visibility of those Polylines?
Even if it means clearing out everything and redrawing them, its fine.
I tried gw.clearscreen but didn't seem to work.
Thanks in advance
Comments
Thanks for reply. Below is
Thanks for reply.
Below is the code I am using from maxscript help page.
I tried to run unregisterRedrawViewsCallback "functionname".
But that didn't help. Even resetting doesn't disable it.
Only restarting works or deleting scene object (which will result in an error due to registered calls).
.
This works:
Tools and Scripts for Autodesk 3dsMax
if drawing line must be
if drawing line must be registered then stop drawing must be unregistered those function ..
let say you have
to stop it you must use
.
To be sure that the drawLine will be unregistered correctly declare it as a global variable first.
Tools and Scripts for Autodesk 3dsMax
.
Post your code.
Tools and Scripts for Autodesk 3dsMax
`
is it with registerRedrawViewsCallback ?