Supress warnings especially MassFx

Was wondering if there was an easy way to suppress all warnings via maxscript when opening a file in 3ds max. Especially the massFx warning.

Thank you!

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
nnq2603's picture

loadMaxFile @"d:\mymaxfile\xxx.max" useFileUnits:true quiet:true

How to make this code work at a startup script or something that could allow us click on any *.max file and get it open silently without any dialogue box.

Now I can only use the code in a way that firstly open 3ds max program and then run the code with exact file path. May I ask anyone could turn this code into usable startup script for 3ds max (without run it manually each time)?

miauu's picture

.

1. Open MaxScript Editor
2. Press Ctrl+N to create new file(just in case)
3. Put this in this file: loadMaxFile @"d:\mymaxfile\xxx.max" useFileUnits:true quiet:true
Use the proper path to the file that you want to be loaded.
4. Save the file as "LoadMyMaxSceneOnStartup.ms" or use any other name, but the file extension should ne "ms"
5. Put tha saved file inside maxRoot/Scripts/Startup folder
6. Restart 3ds Max - the file will be loaded
Every time when you run 3ds Max and the file is inside maxRoot/Scripts/Startup folder it will be loaded

nnq2603's picture

loadMaxFile @"d:\mymaxfile\xxx.max" useFileUnits:true quiet:true

I know that procedure. But here the problem (is in the code itself not enough) it's locked to a hardcode path. I guess you're not going to spend time because it's not something worthy.

I mean the steps above is appreciated by me, thanks for that, but without test I'm sure it wouldn't work when I go and click any file other than the hard-coded file path (which render it unusable in daily basis). Any way to make it work relatively, for any file we click/double click in explorer without being locked to a single file path written in the code from the beginning?

miauu's picture

.

I am quite confused of what exactly do you need.

Do you want this:
- go to windows explorer
- double click a xxx.max file
- the xxx.max file will be opened in the currently opened 3ds Max, which means that the xxx.max will not be opened in new 3ds max instance as usualy happens?

If this is the case, then you may need to use AutiIT script which will monitor duble lciking in the Window Explorer and when the double clicked file is a max file it will open it in the currently opened 3ds max.

Or you can try to create a right click entry in the right click menu when you right click in Windows Explorer. For example, you want to open xxx.max - select the file, right click and in the rightclick menu click the "Open in 3ds Max". The code behind the "Open in 3ds Max" will find the currently opened 3ds Max and will open the xxx.max. This way you will avoid tracking if the double click is performed, the type of the double clicked file, etc.

nnq2603's picture

Default open any *.max file without warning dialogue boxes?

Sorry, it's my bad at explaining myself. I'm now writing in more clear way.

Is there a simple way to set-off/disable/bypass all kind of warning dialogue boxes when open any *.max file? The *.max file could be any max file and different from time to time. Whereas the code in the 1st post only allow to open exactly the file in fixed path (hard-coded path).

I mean simply, open any max file, automatically accept file unit, accept file gamma, and suppress other dialogue boxes/windows (if any). Result: open or click any file will open it smooth and automatically without showing any dialogue/warning boxes requires user to interact. I hope that clear now, I'm not a native English speaker anyway.

miauu's picture

.

You want to:
1. Go to D:\MyMaxFiles\Cars\ fodler
2. Doubleclick the lastCarScene.max
3. the lastCarScene.max to be opened in 3ds max(new instance) without any messages for accepting units, missing plugins, etc?

nnq2603's picture

Yes and open from inside a running 3ds max, too.

I mean to ask both:

1. Go to d:\folder\project001\
2. Double-click maxfile1.max
3. Get it open without any dialogue boxes (unit, gamma). Accept file gamma/unit.

AND

1. In the already running instance of 3ds max. I finished my task with maxfile1.max.
2. I open maxfile5.max from inside this running 3ds max.
3. Get it open without any warning about unit, gamma, missing, etc... Accept file gamma/unit.

jahman's picture

.

did you check the link?
probably it is enough for you to add
SetQuietMode true
to any of your startup scripts.

nnq2603's picture

SetQuietMode true, work to some extend but not quite

Seems like only works with files open via Windows explorer (I have a *.ms file with "SetQuietMode true" inside in script\startup), but not by open file from a running instance of 3ds max. I'm just a regular user, you seems treat me as a script writer like yourself. How to make it work with both click in explorer and open (Ctrl+O) from a running 3dsmax? Thanks for spending time to answer.

jahman's picture

.

That is really strange. I have no popup messages whatsoever after SetQuietMode true added to startup. Not matter how I open a scene.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.