Notifications
Clear all

[Closed] SDK: Finding max install directory

I’m working on a renderer plugin for Max. This plugin includes a few data files that live inside the Max install directory. So far I’ve always been assuming that the current working directory is the install directory containing 3dsmax.exe and I load the files through paths relative to this directory.

Today I noticed that when opening a .max file from windows explorer, the current working directory is something other than the Max install root, so my plugin fails to load its files.

Does the SDK have any function to let me find the directory Max is installed to? If not, is there some other way I should be loading in data files?

Edit: Nevermind, I think I may have been mistaken about this. Please disregard.