See which maxscript files are imported

Heya,

is there any way to check which maxscript files are imported/loaded on 3ds Max startup?

I have a situation where maxscript files are loaded from different locations (local and from the server) and one of them is doing stuff I dont want to happen but I have no freaking idea WHERE IT IS.

I know that 3ds Max goes through some folders like scripts/startup etc. to find suitable files to load on startup, but is there any way to detect which exactly?

Any hints to hunt down that file?

Cheers

Comments

Comment viewing options

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

.

Find the script in Customize-Customzie User Interface. Right click on the script and press Edit Macro Script. In the Maxscript Editor the macro will be loaded. Hover the mouse cursor over the tab of the opened script untill the tooltip appears and you can see where the script is located.

br0t's picture

Hey thanks miaau. There is

Hey thanks miaau. There is actually even a quicker way that I found which is

Macros.list()

The problem seems that the script I am looking for is not a macroscript. This is so annoying :_:

Never get low & slow & out of ideas

miauu's picture

.

What is it?

br0t's picture

Its just a normal maxscript

Its just a normal maxscript file that is imported somewhere using a fileIn. It initializes a toolset by importing all kinds of stuff from a server location which is defined using a windows environment variable. Some of these tools import other tools and so on, its quite a mess actually.

The problem I am facing is that one of these files performs a check in the current max scene for the system units and displays a messagebox if it is not set to centimeters. I need to eliminate that check but it keeps getting imported SOMEWHERE and its driving me crazy :P

Never get low & slow & out of ideas

miauu's picture

.

If you know all locations where the ms files are then you can try with Find in Files. Open MaxScript Editor, then Search - Find in FIles and search for

#Centimeters
br0t's picture

Yes I tried that in basically

Yes I tried that in basically all locations on my machine where it could possibly be.

But: Halleluja I have found it :)

The maxscript file was actually located in some folder on a network drive; It has been loaded into Max because Max will load every .ms file it founds under its pluginPaths. So the problem was that in my Max root the plugins.ini included a custom path pointing to that network drive folder.

Phew!

If someone encounters the same issue, you can quickly get a list of all plugin paths inside 3ds Max like so:
for i=1 to pluginPaths.count() do print (pluginPaths.get i)
and then you can check these folders for maxscript files that may be loaded.

Never get low & slow & out of ideas

Comment viewing options

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