ScriptSpot

Forum topic · General Scripting

How to Surpress Topo Warnings?

By mariokart64n · 2011-02-28

Description

I'm dumping geometry using maxscript, which collects data from various modifiers.

when the script accesses the various modifiers in each node's stack I keep getting these pesky topo warnings about accessing modifiers in the stack.
I understand that the prompt lets you ignore future warnings. But I'm looking for another solution, as it seems a bit unprofessional to instruct people to edit there warning options. :\

I found a simular case here, although the actual issue was never solved:
http://forums.cgsociety.org/archive/index.php/t-831134.html

Comments (2)

Far from ideal but...

Garp · 2011-02-28

... it seems to do the job.

DialogMonitorOPS.unRegisterNotification id:#silentStack
 
fn closePopup = 
(
  WindowHandle = DialogMonitorOPS.GetWindowHandle()
  if UIAccessor.GetWindowText WindowHandle == "Warning" do
  (
    ChildHandle = UIAccessor.GetFirstChildWindow WindowHandle
    ChildHandle = UIAccessor.GetNextWindow ChildHandle
    UIAccessor.PressButton ChildHandle
  )
  true
)
DialogMonitorOPS.RegisterNotification closePopup id:#silentStack

      <YOUR STUFF HERE>

DialogMonitorOPS.unRegisterNotification id:#silentStack

mariokart64n · 2011-03-02

awesome, thank you