Where are the settings saved?

 
 
 
Posted by:oroussea
Data created:8 June 2010

Hello everyone.

I'm looking for the place where Max.NET settings are saved.

I'm asking because we want to enable the Remoting capabilities of Max.NET automatically when we install our plugin with Max.NET.

Please let me know if it's feasable.

Thanks

Hello,

Yes it should be very possible. The settings are stored in 3dsmax user-specific /plugcfg directory under the name MaxDotNet.config. For example, in Vista and Windows 7 this file is typically:

C:\Users\USERNAME\AppData\Local\Autodesk\3dsMax\2010 - 64bit\enu\plugcfg\MaxDotNet.config

You can look up the exact location of this in the registry under local machine/software/autodesk key (forget the exact name). The file is not there by default and only gets generated if you alter the settings (if no file is present defaults are used). Its typical contents are:

<?xml version="1.0" encoding="utf-8"?>
<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <HandleExceptions>true</HandleExceptions>
  <ReloadSceneOnUnload>true</ReloadSceneOnUnload>
  <UnloadRemovedAssemblies>true</UnloadRemovedAssemblies>
  <LoadAddedAssemblies>true</LoadAddedAssemblies>
  <LoadAssembliesOnStartup>true</LoadAssembliesOnStartup>
  <RemotingPort>9998</RemotingPort>
  <AllowPluginUnloading>true</AllowPluginUnloading>
  <AllowRemoting>false</AllowRemoting>
</Configuration>

Hope this helps.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Wow! Super quick reply!

Many thanks! That was exactly what I was looking for.

Btw, I guess that this file is created the 1st time the plugin is activated?

No problem :)

I believe it is created the first time you change configuration and then close the config. dialog (just running it shouldn't create the file, although I do not remember 100% now).

Marsel Khadiyev (Software Developer, EPHERE Inc.)