Can I make messagebox not show?

Can I make messagebox not show?

Anonymous
Not applicable
1,244 Views
10 Replies
Message 1 of 11

Can I make messagebox not show?

Anonymous
Not applicable

 

I wanna to build a program that will load model files and export to other format file automatically.

But the message box make my program pause.

Could I override something so that I can handle it in code.

0 Likes
1,245 Views
10 Replies
Replies (10)
Message 2 of 11

hainamcad
Advocate
Advocate

use print function instead messagebox

0 Likes
Message 3 of 11

denisT.MaxDoctor
Advisor
Advisor

what exporter do you use? some exporters follow #noPrompt flag of the exportFile method

 

anyway, you can always close any popup dialog using the DialogMonitorOPS interface and its mechanics 

 

(see the MXS help for more details)

 

0 Likes
Message 4 of 11

Anonymous
Not applicable

Hi,

This messagebox shows when I load a model with vray material.

I don't use any exporter, I build it myself.

I've built a obj exporter with c#, it won't show the messagebox.

And I also need to export .vrscene (I have no idea now).

 

The messagebox still shows even though I call this method and set noprompts = true. It seems not working.

MaxPlus.FileManager.Open(string name, bool NoPrompts)

 

 

I will read information for DialogMonitorOPS interface and its mechanics.

Thanks.

 

 

0 Likes
Message 5 of 11

Anonymous
Not applicable

Hi,

This messagebox shows when I load a model with vray material.

I have no idea how to control it.

0 Likes
Message 6 of 11

Anonymous
Not applicable

MaxPlus-specific implementation for general silencing of dialogs is

MaxPlus.Application.SetQuietMode (True)

Silencing in MaxScript can be done via

setQuietMode True

and

setVRaySilentMode()

MaxScript can be executed using MaxPlus.Core.EvalMAXScript

0 Likes
Message 7 of 11

Anonymous
Not applicable

I tried. But it seems not working.

MaxPlus.Application.SetQuietMode (True)

The messagebox about vray still shows.

Anyway, thanks.

0 Likes
Message 8 of 11

Anonymous
Not applicable

What message is that exactly?
Can you post a screenshot of the message?

0 Likes
Message 9 of 11

Anonymous
Not applicable

无标题2.png

this one. I do not want it show.

0 Likes
Message 10 of 11

Anonymous
Not applicable

Since it's a V-Ray message then it should be controlled by setVRaySilentMode()
but I can't test that since I cannot reproduce the dialog.
I'm pretty sure that this dialog never gets shown when 3dsmaxbatch.exe is used for processing.
I process thousands of V-Ray scenes that way and never get a single dialog.

 

You can also check out Chaos Group Forums

Message 11 of 11

Anonymous
Not applicable

really thanks. I'll try it

0 Likes