"Memory limits ..." dialog suppression.

"Memory limits ..." dialog suppression.

Anonymous
Not applicable
1,747 Views
4 Replies
Message 1 of 5

"Memory limits ..." dialog suppression.

Anonymous
Not applicable

I know this question been asked before but I also know the question has not been answered.

 

The following dialog appears on opening scenes:
dialog-memory.png

 

The dialog does not get suppressed the usual way, i.e.

loadMaxFile quiet:True allowPrompts:False

or

SetQuietMode True

The dialog also shows on PC running Backburner Server.

 

I am aware of this solution:
https://forums.autodesk.com/t5/3ds-max-programming/suppress-prompts-when-opening-files/td-p/8165068
But it's not the proper solution as far as I'm concerned, although it does work.

 

My question is:

is there a proper way to suppress this dialog?

 

If not then I ask Autodesk to open a support case on the subject.

0 Likes
Accepted solutions (3)
1,748 Views
4 Replies
Replies (4)
Message 2 of 5

denisT.MaxDoctor
Advisor
Advisor
Accepted solution

as i understand it's the Hair and Fur plugin warning.. and you have an object with this modifier applied.

it is at the developer's discretion to follow the "silent mode rule" or not. (show or not any pop-up dialog (modal or not)). you (or MAX developers) can't do much to prevent "third-party" dialog from pop-up.

the most common solution i know is to use DialogMonitorOps to catch a specified window and close it after its pop-up.

i'm pretty sure there are many examples on this or another MAX programming forums.

 

but i can give another example... it closes "Preference Settings" modal dialog (it's easy to test):

DialogMonitorOPS.unRegisterNotification id:#memory_limits_watcher
-- DialogMonitorOPS.enabled = off

(
	fn notification = 
	(
		hwnd = DialogMonitorOPS.GetWindowHandle()
		if (UIAccessor.isWindow hwnd) and matchpattern (UIAccessor.GetWindowText hwnd) pattern:"preference settings*" do -- pattern:"memory limits*" do
		(
			UIAccessor.PressDefaultButton()
		)
		true
	)
	enabled = DialogMonitorOPS.enabled
	DialogMonitorOPS.RegisterNotification notification id:#memory_limits_watcher
	DialogMonitorOPS.enabled = on
)

in your case just change the dialog's title text pattern (see commented in my code)   

 

you can put it in any max's "startup" place .. (i don't know where you prefer)

 

PS. of course there are much "fancy" ways to catch this dialog (by .DLL name, for example) but that's just an idea.

Message 3 of 5

Anonymous
Not applicable

Hey, Denis!
Appreciate the help.
I was heading into that direction myself but if something doesn't work as expected I have a habit of bugging Autodesk with it.

 

I realize that Autodesk cannot control 3rd party developers but the thing is that this particular message shows up on clean installation of 3dsMax -- no additional plugins installed.
And if this thing is in any way related to Hair.dlo then this particular plugin is listed as a Standard 3dsMax Plugin.

It should obey silent modes and whatnot.

 

Autodesk?

Message 4 of 5

kevinvandecar
Community Manager
Community Manager
Accepted solution

Hello alexcgt,

 

yes, we agree this is a problem and have entered a change request to get it fixed. In the meantime, the solutions you have already referenced (from denis, etc.) should be decent workarounds. Thanks to to point it out.

 

thank you for reporting this.

kevin

 

 

 


Kevin Vandecar
Developer Technical Services
Autodesk Developer Network



0 Likes
Message 5 of 5

Anonymous
Not applicable
Accepted solution

Thank you for the reply, Kevin.

0 Likes