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 (6)
Comment policy
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:
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.
.
Post your code.
`
is it with registerRedrawViewsCallback ?